ohmyzsh个人配置

git clone下来,https://github.com/ohmyzsh/ohmyzsh.git

修改:REPO和 REMOTE为国内源然后安装  

REPO=${REPO:-mirrors/ohmyzsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}

主题:ZSH_THEME="jtriley"

 

zsh-autosuggestions

它是Oh-myszh的一个插件,作用基本上是根据历史输入指令的记录即时的提示,能够很大的提高效率。

1.克隆到插件目录:

git clone git://github.com/zsh-users/zsh-autosuggestions

2.修改配置文件.zshrc:

plugins=(git zsh-autosuggestions)

zsh-syntax-highlighting

这是一个命令高亮插件,输入为绿色时表示可用命令,路径带有下划线时表示可用路径

1.克隆到插件目录:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

2.修改配置文件.zshrc:

plugins=(git zsh-syntax-highlighting)

最后别忘了让配置生效

source .zshrc

 

plugins=(git z zsh-autosuggestions ansible)

posted @ 2021-10-18 10:38  步履不停1991  阅读(89)  评论(0编辑  收藏  举报