安装
1、安装 zsh
sudo apt install zsh
2、将当前用户的shell切换为 zsh:
chsh -s /bin/zsh
3、安装 oh-my-zsh 增强 zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
配置
zsh 的配置文件是 ~/.zshrc。
oh-my-sh 的配置文件在 ~/.oh-my-zsh 目录。