- 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)
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
/**
|
|
* Plugin configuration for Claude Code hooks execution
|
|
* Contains settings for hook command execution (zsh, etc.)
|
|
*/
|
|
|
|
const isWindows = process.platform === "win32"
|
|
|
|
export const DEFAULT_CONFIG = {
|
|
// Windows doesn't have zsh by default, so we disable forceZsh on Windows
|
|
forceZsh: !isWindows,
|
|
zshPath: "/bin/zsh",
|
|
}
|