CentOS zsh配置

# Terminal config
echo $SHELL
yum -y install zsh
chsh -s /bin/zsh
reboot
echo $SHELL
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
mkdir ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
mkdir ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
sed -i 's/(git)/(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrc
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="ys"/g' ~/.zshrc
source ~/.zshrc

おすすめ

転載: blog.csdn.net/gongchenyu/article/details/126010591