Skip to content

Commit fabb797

Browse files
authored
chore: GH pager (#8747)
1 parent 807f8a4 commit fabb797

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codex-rs/core/src/unified_exec/session_manager.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use super::session::OutputBuffer;
4747
use super::session::OutputHandles;
4848
use super::session::UnifiedExecSession;
4949

50-
const UNIFIED_EXEC_ENV: [(&str, &str); 8] = [
50+
const UNIFIED_EXEC_ENV: [(&str, &str); 9] = [
5151
("NO_COLOR", "1"),
5252
("TERM", "dumb"),
5353
("LANG", "C.UTF-8"),
@@ -56,6 +56,7 @@ const UNIFIED_EXEC_ENV: [(&str, &str); 8] = [
5656
("COLORTERM", ""),
5757
("PAGER", "cat"),
5858
("GIT_PAGER", "cat"),
59+
("GH_PAGER", "cat"),
5960
];
6061

6162
fn apply_unified_exec_env(mut env: HashMap<String, String>) -> HashMap<String, String> {
@@ -679,6 +680,7 @@ mod tests {
679680
("COLORTERM".to_string(), String::new()),
680681
("PAGER".to_string(), "cat".to_string()),
681682
("GIT_PAGER".to_string(), "cat".to_string()),
683+
("GH_PAGER".to_string(), "cat".to_string()),
682684
]);
683685

684686
assert_eq!(env, expected);

0 commit comments

Comments
 (0)