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: 拒絕連接

直接 翻牆下載這個文件

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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM