1安裝zsh
sudo apt-get install -y zsh chsh -s /bin/zsh
2安裝oh-my-zsh
卸載:
rm -rf /home/xuqinghan/.oh-my-zsh
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
提示拒絕連接
curl: (7) Failed to connect to raw.github.com port 443: 拒絕連接
直接 翻牆下載這個文件
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
然后 權限修改為可以執行,運行
chmod +x ./install.sh
sh -c ./install.sh
3安裝zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
用文本編輯器編輯oh-my-zsh配置文件,vscode 是 code sublime是subl ubuntu自帶geidt mint自帶的xed都可以
xed ~/.zshrc
找到,默認裝了git
plugins=(git)
改成
plugins=(git zsh-autosuggestions)
