
官网地址:https://ohmyz.sh/
安装zsh
1 | ubuntu linux |
参照官网
1 | Via curl |

改变当前用户的shell
1 | ubuntu linux |
重新登陆shell

关于环境变量的问题
https://superuser.com/questions/41290/system-wide-environment-variables-for-zsh-on-ubuntu
The manual page zsh(1) states that zsh reads /etc/zsh/zprofile. You could simply add a command there
which sources /etc/profile
$ sudo vim /etc/zsh/zprofile
# add source
source /etc/profile
exit
login
ok…..very tanks