feat: add zsh

This commit is contained in:
2026-05-10 13:55:06 +08:00
parent 8e32f5c533
commit f8635b0969
3 changed files with 45 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Oh My Zsh(由 ~/.dotfile/script/zsh-init.sh 安装到 ~/.oh-my-zsh)
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# z:目录跳转频率学习(OMZ 自带 plugins/z)
plugins=(
git
z
)
if [[ -d "$ZSH" ]]; then
source "$ZSH/oh-my-zsh.sh"
else
echo "[zsh] Oh My Zsh 未安装,请运行: bash ~/.dotfile/script/zsh-init.sh" >&2
fi
# 本机私有配置(不纳入 dotfile)
[[ -f "$HOME/.zshrc.local" ]] && source "$HOME/.zshrc.local"