zsh替换bash,可以让命令行操作少敲很多字符👍
安装zsh
yum install zsh -y
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装zsh-autosuggestions插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
修改~/.zshrc文件
找到plugins变量,增加zsh-autosuggestions,如下:
plugins=(zsh-autosuggestions)