oh my zsh

oh-my-zsh 安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

国内使用:

sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

或者:

git clone https://gitee.com/mirrors/oh-my-zsh.git

把高亮显示和自动补全插件 clone 到 ~/.oh-my-zsh/plugins目录下
github上的插件:

https://github.com/zsh-users/zsh-syntax-highlighting
https://github.com/zsh-users/zsh-autosuggestions

国内使用下面的链接:

git clone https://gitee.com/minhanghuang/zsh-syntax-highlighting.git
git clone https://gitee.com/minhanghuang/zsh-autosuggestions.git

修改用户目录下的 .zshrc 文件

vim ~/.zshrc

编辑

plugins=(git
          zsh-syntax-highlighting
          zsh-autosuggestions
)

保存退出。

source ~/.zshrc
posted @ 2022-11-02 14:24  nevell  阅读(47)  评论(0)    收藏  举报