安裝zsh 和 oh-my-zsh安裝zshyum install zsh安裝gityum install git切換預設shellchsh -s /bin/zshclone from GitHubgit clone git://github.com/robbyrussell/oh-my-zsh.g... ...
安裝zsh 和 oh-my-zsh
安裝zsh
yum install zsh
安裝git
yum install git
切換預設shell
chsh -s /bin/zsh
clone from GitHub
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
複製預設.zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
安裝插件
語法高亮插件
安裝
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
配置
在~/.zshrc的plugins中加入zsh-syntax-highlighting
自動補全插件
安裝
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
配置
在~/.zshrc的plugins中加入zsh-autosuggestions