scripts: don't inherit GIT_PAGER/GH_PAGER into app
This commit is contained in:
parent
33b0c701e1
commit
9ba1d02b2b
2 changed files with 7 additions and 1 deletions
|
|
@ -242,6 +242,10 @@ OPEN_CLEAN_ENV=(
|
|||
-u GHOSTTY_BIN_DIR
|
||||
-u GHOSTTY_RESOURCES_DIR
|
||||
-u GHOSTTY_SHELL_FEATURES
|
||||
# Dev shells (including CI/Codex) often force-disable paging by exporting these.
|
||||
# Don't leak that into cmuxterm, otherwise `git diff` won't page even with PAGER=less.
|
||||
-u GIT_PAGER
|
||||
-u GH_PAGER
|
||||
-u TERMINFO
|
||||
-u XDG_DATA_DIRS
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,5 +15,7 @@ if [[ -z "${APP_PATH}" ]]; then
|
|||
echo "cmuxterm.app not found in DerivedData" >&2
|
||||
exit 1
|
||||
fi
|
||||
open "$APP_PATH"
|
||||
# Dev shells (including CI/Codex) often force-disable paging by exporting these.
|
||||
# Don't leak that into cmuxterm, otherwise `git diff` won't page even with PAGER=less.
|
||||
env -u GIT_PAGER -u GH_PAGER open "$APP_PATH"
|
||||
osascript -e 'tell application "cmuxterm" to activate' || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue