zsh和oh my zsh

zsh安装

sudo apt install zsh

如果不生效,可以在~/.bashrc中添加:

if [ -t 1 ]; then
    exec zsh
fi

  

 

oh my zsh安装

curl:

sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

wget:

sh -c "$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

 添加插件

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

~/.zshrc 中的plugin中添加 zsh-syntax-highlighting和

zsh-autosuggestions
posted @ 2022-01-30 21:57  zxinlog  阅读(31)  评论(0)    收藏  举报