Private
Public Access
1
0

refactor: 简化 shell 检测,仅支持 bash 和 zsh

- 移除 fish shell 支持
- 其他 shell 显示不支持错误并退出
- 简化 write_env_to_shell 函数

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-12 14:03:00 +08:00
parent 9fee340a85
commit 27ec4a2d38
3 changed files with 13 additions and 21 deletions

View File

@@ -33,7 +33,9 @@ get_shell_rc() {
echo "$HOME/.bash_profile"
fi
else
echo "$HOME/.profile"
error "不支持当前 shell: ${SHELL##*/}"
error "仅支持 bash 和 zsh"
exit 1
fi
}