ZSH Shell 个人配置备忘

July 22 2021 94 编码(3)

安装 Oh-My-Zsh

Method Command
curl curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
wget wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
fetch fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh

安装插件

  1. zsh-autosuggestions
    git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' ~/.zshrc
  2. zsh-syntax-highlighting
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="muse"/' ~/.zshrc

修改主题

echo 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=magenta"' >> ~/.zshrc

说两句

 表情