离线安装 oh-my-zsh 及 zsh-autosuggestion(自动命令补全和建议)

这篇文章提供了oh-my-zsh的详细手动安装步骤,包括克隆仓库到~/.oh-my-zsh,备份现有.zshrc文件,创建新的zsh配置文件,更改默认shell为zsh,以及初始化新配置。同时,还介绍了如何安装zsh-autosuggestions插件,需下载后放置到相应位置。
摘要由CSDN通过智能技术生成

oh-my-zsh

参考
https://github.com/ohmyzsh/ohmyzsh#advanced-installation
中 Manual Installation 的步骤即可,不用像网上教程那样手工修改install.sh。

Manual Installation
1. Clone the repository (从可以联网的地方先下载好,并改名~/.oh-my-zsh)
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
2. Optionally, backup your existing ~/.zshrc file
cp ~/.zshrc ~/.zshrc.orig
3. Create a new zsh configuration file

You can create a new zsh config file by copying the template that we have included for you.

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. Change your default shell
chsh -s $(which zsh)

You must log out from your user session and log back in to see this change.

5. Initialize your new zsh configuration

Once you open up a new terminal window, it should load zsh with Oh My Zsh’s configuration.

zsh-autosuggestion

参考:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#manual-git-clone
从可以联网的地方先下载好,放到对应位置即可。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值