mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-03 14:46:46 -07:00
fix(shell): explicitly set PAGER=cat when rcFile is not used
This commit is contained in:
@@ -466,6 +466,8 @@ export class ShellToolInvocation extends BaseToolInvocation<
|
||||
const rcFilePath = this.context.config.getShellToolRcFile();
|
||||
if (rcFilePath) {
|
||||
strippedCommandWithRc = `source ${rcFilePath} && ${strippedCommand}`;
|
||||
} else if (!isWindows) {
|
||||
strippedCommandWithRc = `export PAGER=cat GIT_PAGER=cat; more() { cat "$@"; }; less() { cat "$@"; }; ${strippedCommand}`;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user