fix: Improve Windows compatibility for paths and shell config

- Use os.tmpdir() instead of hardcoded /tmp for cross-platform temp files
- Use os.homedir() with USERPROFILE fallback for Windows home directory
- Disable forceZsh on Windows (zsh not available by default)

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-16 01:02:49 +09:00
parent a10ee64c51
commit be900454d8
5 changed files with 17 additions and 6 deletions

View File

@@ -3,7 +3,10 @@
* Contains settings for hook command execution (zsh, etc.)
*/
const isWindows = process.platform === "win32"
export const DEFAULT_CONFIG = {
forceZsh: true,
// Windows doesn't have zsh by default, so we disable forceZsh on Windows
forceZsh: !isWindows,
zshPath: "/bin/zsh",
}