Zsh/Oh-my-zsh 安装

没什么理由拒绝zsh坚持使用bash……

安装Zsh本体

apt install zsh
zsh --version

zsh安装后

chsh -s $(which zsh)
logout

确认当前shell

echo $SHELL

安装Oh-my-zsh

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

或者

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

初始化

重启终端

可能需要更新PATH

Author: Yorushika Shi
Link: https://sh.yorushika.co/post/zsh/index.html
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.