ubuntu安装zsh和oh-my-zsh

仓库地址

sudo apt-get install -y zsh git-core
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cd .oh-my-zsh
zsh oh-my-zsh.sh
chsh -s `which zsh`

然后应该要输入密码
然后

reboot

打开终端
ubuntu安装zsh和oh-my-zsh

cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s $(which zsh)

然后重启
如果你有配置conda,可能会发现没有前面的(base)了
所以

sudo nano ~/.bashrc

把conda的那一段复制一下
ubuntu安装zsh和oh-my-zsh

sudo vim ~/.zshrc

再末尾添加
ubuntu安装zsh和oh-my-zsh
然后

source ~/.zshrc

设置更新时间

sudo vim ~/.zshrc

这里根据提示,然后去掉某一条注释
ubuntu安装zsh和oh-my-zsh

上一篇:安装zsh


下一篇:【PTA】简易连连看