安装并配置 zsh
安装 zsh
apt install -y zsh
安装 Oh My Zsh 美化终端
REMOTE=https://gitee.com/mirrors/oh-my-zsh.git sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
切换 zsh 作为登录 shell
chsh -s /bin/zsh
修改 zsh 主题
sed -ri 's/ZSH_THEME="robbyrussell"/ZSH_THEME="ys"/g' ~/.zshrc
修改语言环境
echo "export LANG=C.UTF-8" >> ~/.zshrc
使脚本生效
source ~/.zshrc