安装 zsh
yum install -y git curl
yum install -y zsh
cat /etc/shells
chsh -s /bin/zsh
安装 ohmyzsh
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
安装插件
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
.zshrc 配置
vim ~/.zshrc
DISABLE_UPDATE_PROMPT=true
ZSH_THEME="robbyrussell"
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
source ~/.zshrc
终端效果
