Ubuntu 安装 Oh My Zsh

查看系统支持的 shells

cat /etc/shells

安装 zsh

sudo apt install zsh

下载 oh-my-zsh:

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

下载 zsh-autosuggestions(历史记录自动完成插件):

git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions

配置 zsh:

vim ~/.zshrc
# 添加插件
plugins=(git autojump zsh-autosuggestions laravel composer history go golang ubuntu vagrant)

添加 source:

source ~/.zshrc

修改为默认 shell

chsh -s /bin/zsh 

参考文献: