debian10 或者omv5 中安装配置zsh

官方参考

https://github.com/ohmyzsh/ohmyzsh

安装

Prerequisites 前置要求

  • A Unix-like operating system: macOS, Linux, BSD. On Windows: WSL2 is preferred, but cygwin or msys also mostly work.
  • Zsh should be installed (v4.3.9 or more recent is fine but we prefer 5.0.8 and newer). If not pre-installed (run zsh --version to confirm), check the following wiki instructions here: Installing ZSH
  • curl or wget should be installed
  • git should be installed (recommended v2.4.11 or higher)
apt-get install zsh
which zsh | tee -a /etc/shells 
chsh -s /bin/zsh 

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# 如果提示没有git 相应进行安装,如果提示443错误,请按照前文修改hosts文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

发表回复