Ubuntu安装zsh和oh my zsh

2020-10-15
#Experiences #Unix

1.安装zsh

sudo apt install zsh

2.安装 oh my zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

3.创建配置文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

4.设置默认的shell

chsh -s /bin/zsh

重启Ubuntu。

5.复制

把原来的bashrc的路径内容复制到zshrc里面。

gedit ~/.zshrc

gedit ~/.bashrc

source ~/.zshrc

6.参考