zsh及必备plugin安装

■ 安装zsh

查看官方git

via curl

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

via wget

1
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

■ 修改主题

例:

1
2
3
4
5
# vim ~/.zshrc
ZSH_THEME="avit"

# save , then
source ~/.zshrc

■ 语法高亮

查看官方git

安装

1
2
3
4
5
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

# save, then
source ~/.zshrc

■ autojump

1
2
3
4
5
6
7
8
9
10
# vim ~/.zshrc

plugins=(
autojump
)

# test
cd ~/acccc
cd ~/bgggg
j a

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×