安装 zsh
:
sudo apt-get install zsh
chsh -s /bin/zsh
安装 oh-my-zsh
:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
git
z
web-search
)
其中 git
, z
, web-search
都是自带的
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions