最近被鸟哥疯狂安利zsh,决定装一下,确实敲命令快多了,记录一下过程:
step1:下载zsh
sudo apt install zsh
step2:下插件(在home位置操作!)
# 下载oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# 插件1:高亮插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# 插件2:自动补全插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 在 ~/.zshrc 的plugins参数中,添加此插件
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
step3:转移.bashrc中后续加进去的语句,例如ros、ananconda、gpuPATH等,注意这些内容中有时候会出现 “.bash”,改成“.zsh”即可。
核心功能:右键头自动补全
Error: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
Solution1-global: 【解决】正在连接 raw.githubusercontent.com 失败:拒绝连接-优快云博客
Solution2-local:
export https_proxy=http://127.0.0.1:7890