ubuntu配置zsh和oh-my-zsh

1安装zsh

sudo apt-get install -y zsh

chsh -s /bin/zsh

2安装oh-my-zsh

卸载: 

rm -rf /home/xuqinghan/.oh-my-zsh

 

https://ohmyz.sh/

$ 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: 拒绝连接

直接 FQ下载这个文件

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)
posted @ 2017-10-07 15:44  永远的幻想  阅读(3092)  评论(0编辑  收藏  举报