4da4302105
- GIT_EDITOR, EDITOR, VISUAL, GIT_SEQUENCE_EDITOR set to 'true' to block editor invocations during git operations like rebase - GIT_PAGER, PAGER set to 'cat' to disable pagination - Fixes issue where git rebase --continue was still opening nvim despite existing non-interactive env vars 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
18 lines
451 B
TypeScript
18 lines
451 B
TypeScript
export const HOOK_NAME = "non-interactive-env"
|
|
|
|
export const NON_INTERACTIVE_ENV: Record<string, string> = {
|
|
CI: "true",
|
|
DEBIAN_FRONTEND: "noninteractive",
|
|
GIT_TERMINAL_PROMPT: "0",
|
|
GCM_INTERACTIVE: "never",
|
|
HOMEBREW_NO_AUTO_UPDATE: "1",
|
|
// Block interactive editors - git rebase, commit, etc.
|
|
GIT_EDITOR: "true",
|
|
EDITOR: "true",
|
|
VISUAL: "true",
|
|
GIT_SEQUENCE_EDITOR: "true",
|
|
// Block pagers
|
|
GIT_PAGER: "cat",
|
|
PAGER: "cat",
|
|
}
|