ubuntu zsh简明配置【自用】

最近被鸟哥疯狂安利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 失败:拒绝连接-CSDN博客

Solution2-local:

export https_proxy=http://127.0.0.1:7890

  • 5
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值