需要设置科学上网,否则github的内容下载不下来。

FAQ:
    Q1.raw.githubusercontent.com port 443: Connection refused

       设置科学上网:http_proxy="http://"

                             https_proxy="http://"
                            http_proxy和https_proxy的设置值一致。
1.install the zsh 

sudo apt-get install zsh

2.install ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

  或者使用以下方法安装

wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
bash install.sh

3.install plugin

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone git@github.com:zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

4. edit ~/.zshrc set you favorite theme & plugins
ZSH_THEME="ys"  

plugins=(git
 zsh-syntax-highlighting
 zsh-autosuggestions
)

5.change the default shell to zsh

chsh -s /bin/zsh


6. 重启电脑

systemctl reboot 

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐