安装
- ubuntu
sudo apt-get install zsh - centos
yum install zsh git - OSX
brew install zsh git
配置
设置zsh为系统默认shell
- 为root用户修改默认shell为zsh
chsh -s /bin/zsh root - 为当前用户修改默认shell为zsh
chsh -s /bin/zshorchsh -s \which zsh` ` - 恢复命令
chsh -s /bin/bash
主题:
vim ~/.zshrc && ZSH_THEME="agnoster"
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes










网友评论