Macbook-安装oh my zsh插件

2,591 阅读1分钟

1.mac os 安装oh my zsh的自动补全插件zsh-autosuggestions

1.1 安装步骤

(1)cd ~/.oh-my-zsh/custom/plugins/

(2)git clone github.com/zsh-users/z…

(3)vi ~/.zshrc

1.在文件中查找 :plugins=(git)

plugins=(  
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
)

(4) 执行 source ~/.zshrc

2.mac os 安装oh my zsh的语法高亮插件zsh-syntax-highlighting

2.1 安装步骤

(1)cd ~/.oh-my-zsh/custom/plugins/

(2)git clone github.com/zsh-users/z…

(3)vi ~/.zshrc

1.在文件中查找 :plugins=(git)

plugins=(  
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
)

(4) 执行 source ~/.zshrc

3.mac os 安装oh my zsh的主题

3.1 安装步骤

// 安装字体包
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

3.2 换主题

(1) git clone github.com/bhilburn/po…

(2)vi ~/.zshrc

   ZSH_THEME="powerlevel9k/powerlevel9k"

(3) 执行 source ~/.zshrc

4. vscode下settings.json新添这句

"terminal.integrated.fontFamily": "Meslo LG M for Powerline"

5. oh my zsh

github.com/robbyrussel…