目录
记录下少走弯路,找了好久发现一行命令安装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
自动补齐插件
这个也搞好久,结果一直卡在个不存在的文件夹上也是无语
进入=》下载=》配置=》启动
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