From 5f14277fbfaa35bc568bed0cd35ee0403064af67 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 6 Dec 2024 13:56:57 -0800 Subject: [PATCH] Remove -i when running shell commands, as it tosses local env --- aider/run_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/run_cmd.py b/aider/run_cmd.py index 4d8e0d4fe..69d5bd7c6 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -113,7 +113,7 @@ def run_cmd_pexpect(command, verbose=False, cwd=None): # Use the shell from SHELL environment variable if verbose: print("Running pexpect.spawn with shell:", shell) - child = pexpect.spawn(shell, args=["-i", "-c", command], encoding="utf-8", cwd=cwd) + child = pexpect.spawn(shell, args=["-c", command], encoding="utf-8", cwd=cwd) else: # Fall back to spawning the command directly if verbose: