Oh-My-Zsh安装
检查当前可用shell
cat /etc/shells,如果没有zsh则需要安装zshapt install zsh查看当前使用shell
echo $SHELL,如果不是zsh则需要切换到zshchsh -s /bin/zsh安装oh-my-zsh
sh -c "$(proxychains curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"下载zsh-syntax-highlighting 语法高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting下载 zsh-autosuggestions 自动提示插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions配置.zshrc文件
vim .zshrc ZSH_THEME="ys" plugins=(git zsh-syntax-highlighting zsh-autosuggestions) source .zshrc