anancds / document

MIT License
1 stars 0 forks source link

ubuntu安装zsh和oh-my-zsh #102

Open anancds opened 4 years ago

anancds commented 4 years ago

安装 Zsh sudo apt install zsh

将 Zsh 设置为默认 Shell chsh -s /bin/zsh

anancds commented 4 years ago

安装 Oh My Zsh wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh以上命令可能不好使,可使用如下两条命令 wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh bash ./install.sh

anancds commented 4 years ago

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

vim ~/.zshrc

// 写入文件最后一行

Note the source command must be at the end of .zshrc

source "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"

anancds commented 4 years ago

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

vim ~/.zshrc

// 找到plugins plugins=(git zsh-autosuggestions) source ~/.zshrc