fix(non-interactive-env): add editor and pager environment variables to block interactive UI
- 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)
This commit is contained in:
@@ -6,4 +6,12 @@ export const NON_INTERACTIVE_ENV: Record<string, string> = {
|
|||||||
GIT_TERMINAL_PROMPT: "0",
|
GIT_TERMINAL_PROMPT: "0",
|
||||||
GCM_INTERACTIVE: "never",
|
GCM_INTERACTIVE: "never",
|
||||||
HOMEBREW_NO_AUTO_UPDATE: "1",
|
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",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user