安装zsh以及oh-my-zsh

zsh

1
$ sudo apt install zsh git

oh-my-zsh

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

# or 

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

zsh替换bash

1
$ vim ~/.bash_profile
exec zsh
source ~/.zshrc

更改配置

1
$ vim ~/.zshrc
#ZSH_THEME="rubbyrussell"
ZSH_THEME="ys"
updatedupdated2020-05-252020-05-25