Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 858 Bytes

ohmyzsh.md

File metadata and controls

34 lines (29 loc) · 858 Bytes

oh my zsh

常规安装
# 依赖zsh和git,https://ohmyz.sh/#install
# yum install zsh
# apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 国内镜像
# sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
修改主题
修改~/.zshrc的ZSH_THEME配置, 可以修改主题

# 主题推荐
ZSH_THEME="bira"
自动补全配置和语法高亮配置
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

vim ~/.zshrc
# 新增插件配置
plugins=(
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
)