diff --git a/scripts/reload.sh b/scripts/reload.sh index 2124abaa..a7fb147a 100755 --- a/scripts/reload.sh +++ b/scripts/reload.sh @@ -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 ) diff --git a/scripts/reloadp.sh b/scripts/reloadp.sh index c00c8a1e..dfae1eef 100755 --- a/scripts/reloadp.sh +++ b/scripts/reloadp.sh @@ -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