1丸相、首先確定安裝了zsh(等同于bash等)
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
2、安裝oh-my-zsh 它會在你的根目錄下創(chuàng)建一個.oh-my-zsh的文件夾叠必,里面包含了theme plugins等文件夾,之后安裝的各種拓展就放在這些文件夾下。
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3帖汞、plugin里包括了很多插件 要用哪個直接在vim ~/.zshrc的plugin里加入就好 中間用空格隔開。非常非常好用的:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
記得clone完之后要修改zshrc
4凑术、要使用不同主題也是同樣在vim ~/.zshrc里修改翩蘸。