fix(modules): 修正 zsh hook 脚本路径

This commit is contained in:
2026-03-25 16:21:46 +08:00
parent efa5fd835c
commit 34d4325f09
2 changed files with 1 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
if [ "$SHELL" != "$(which zsh)" ]; then
echo "==> 设置默认 shell 为 zsh..."
sudo chsh -s "$(which zsh)" "$USER"
echo "✓ 默认 shell 已设置为 zsh(重新登录后生效)"
else
echo "默认 shell 已经是 zsh"
fi