安装git
1 | sudo apt-get install git |
安装zsh
1 | sudo apt-get install zsh |
安装oh-my-zsh
1 | wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh |
切换shell
1 | chsh -s /bin/zsh |
注意,需要重启终端才能生效。
不重启保持使用zsh
打开preferences,找到profiles,选择command,将command改为/bin/zsh
,然后重启终端。
主题切换
1 | vim ~/.zshrc |
找到ZSH_THEME="robbyrussell"
,可以修改主题,例如ZSH_THEME="random"
。
要运行
1 | source ~/.zshrc |
才能生效。
总结
如果windows默认shell是zsh该多好啊…