【ubuntu】配置zsh

1. 修改默认shell为zsh

chsh -s /bin/zsh

echo $SHELL$

2. 下载oh-my-zsh

wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh

3. 修改主题

vim ~/.zshrc

 ZSH_THEME="agnoster"

source ~/.zshrc

4. 添加语法高亮和自动补全功能

cd ~/.oh-my-zsh/custom/plugins

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

git clone git://github.com/zsh-users/zsh-autosuggestions

vim ~/.zshrc

修改为

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

添加

source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

保存

source ~/.zshrc

 

posted @ 2019-05-07 16:43  shulin15  阅读(247)  评论(0编辑  收藏  举报