git安装配置oh-my-zsh

目录

下载配置ohmyzsh

自动补齐插件

参考



记录下少走弯路,找了好久发现一行命令安装oh-my-zsh运行老是不行:

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

搞半天终于搞明白了,老是报错,好像是网络不行

Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108|:443... failed: Connection refused.

下载配置ohmyzsh

用wget https://gitee.com/hgthy

l/ohmyzsh.git

下载的不知道是个啥,打不开。于是找了个git下来用。

安装=》配置=》下载 =》运行

apt install git
apt install zsh
chsh -s /bin/zsh
git clone https://gitee.com/hgthyl/ohmyzsh.git
sh ohmyzsh/tools/install.sh

或者 手动进入tools下sh install.sh

git安装配置oh-my-zsh

自动补齐插件

git安装配置oh-my-zsh

这个也搞好久,结果一直卡在个不存在的文件夹上也是无语

进入=》下载=》配置=》启动

cd ~/.oh-my-zsh/plugins/ 
wget http://mimosa-pudica.net/src/incr-0.2.zsh   
echo"source ~/.oh-my-zsh/plugins/incr*.zsh" >> ~/.zshrc
source ~/.zshrc

参考

oh-my-zsh,让你的终端从未这么爽过

上一篇:zsh+oh-my-zsh


下一篇:安装zsh解释器