ubuntu更换shell
zsh配置
sudo apt install zsh
chsh -s /bin/zsh
reboot
sudo apt install zsh-theme-powerlevel9k zsh-autosuggestions zsh-syntax-highlighting
gedit ~/.zshrc
zstyle ‘:completion:*’ menu select
alias ll=‘ls -alF’
alias la=‘ls -A’
alias l=‘ls -CF’
setopt nonomatch
source /usr/share/powerlevel9k/powerlevel9k.zsh-theme
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Oh-My-Zsh配置
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
gedit ~/.zshrc
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
uninstall_oh_my_zsh
问题描述(在自己的主机上报错)
安装zsh的必要插件:oh-my-zsh时系统报错,安装指令:`sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
`时显示:
`--2022-06-07 23:27:59-- (尝试次数: 2) https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:443... 失败:拒绝连接。
正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.76.133
正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:443... 失败:拒绝连接。
`
原因分析:网络被墙,在etc/profile中添加主机地址仍然无法解决,同时也尝试使用crub安装源再次进行换一种方式下载,但还是失败了。
目前没有想到很好的对策。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)