zshell 实现相似 fish 自动提示

第一步

克隆下载 https://github.com/zsh-users/zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions

注意这里使用的是 oh-my-zsh。

第二步

配置 .zshrc 的 plugins:
vim ~/.zshrc
//找到下面 plugins 的配置,添加 zsh-autosuggestions
plugins=(zsh-autosuggestions) 多个空格分开
//打开一个新的 tab,基本上大功告成。

若是 tab 不起做用

能够尝试下面的解决方案:git

vim ~/.oh-my-zsh/oh-my-zsh.sh
打开这个文件,找到

:${ZSH_DISABLE_COMPFIX:=true}
// 默认是 true ,改成 false
:${ZSH_DISABLE_COMPFIX:=false}
该配置项默认是 true ,改成 false。

而后执行 source ~/.zshrc ,若是出现相似:github

Restart your terminal, you must seen some directories that are not secure

这样的错误,命令行执行:vim

sudo chmod 755 <insecure_directory_name>
相关文章
相关标签/搜索