ubuntu下的zsh安装
FAQ:Q1.raw.githubusercontent.comport443:ConnectionrefusedA1:exporthttps_proxy="proxy01.deepin.com:3128"1.installthezshsudoapt-getinstallzsh2.installohmyzshsh-c"$(curl-fsSLhttps://raw.githubusercontent
·
需要设置科学上网,否则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
更多推荐
所有评论(0)