Zsh
Zsh 5.8
/fs00/software/zsh/5.8 Modulefile: zsh/5.8
或从镜像站下载编译安装
Oh My Zsh
安装
在本地克隆后获取安装脚本。
git clone https://mirror.nju.edu.cn/git/ohmyzsh.git
cd ohmyzsh/tools
REMOTE=https://mirror.nju.edu.cn/git/ohmyzsh.git sh install.sh
切换已有 Oh My Zsh 至镜像源
git -C $ZSH remote set-url origin https://mirror.nju.edu.cn/git/ohmyzsh.git
git -C $ZSH pull
Powerlevel10k
git clone --depth=1 https://mirror.nju.edu.cn/git/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc
注意事项
- 建议保持 Bash 为默认 Shell,登录后通过
切换至 Zshexec/fs00/software/zsh/latest/bin/zsh - 或者更改Zsh的命令行提示符(环境变量PS1)最后必须以
$
结尾($+空格),否则登录会失败