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
打开终端
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s $(which zsh)
然后重启
如果你有配置conda,可能会发现没有前面的(base)了
所以
sudo nano ~/.bashrc
把conda的那一段复制一下
sudo vim ~/.zshrc
再末尾添加
然后
source ~/.zshrc
设置更新时间
sudo vim ~/.zshrc
这里根据提示,然后去掉某一条注释
标签:git,oh,zsh,zshrc,sudo,my 来源: https://blog.csdn.net/qq_39942341/article/details/121450642