debian10 或者omv5 中安装配置zsh



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 -O -)"
# 如果提示没有git 相应进行安装,如果提示443错误,请按照前文修改hosts文件

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