From 6e69f86d9c9d084005e740471f6ccd8752203aff Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 29 Nov 2022 14:44:53 -0500 Subject: [PATCH] Prevent shell sync commands from polluting history Signed-off-by: Sebastian Malton --- .../shell-sync/main/compute-unix-shell-environment.injectable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/shell-sync/main/compute-unix-shell-environment.injectable.ts b/src/features/shell-sync/main/compute-unix-shell-environment.injectable.ts index e0f2b2aeb1..fa6de94b57 100644 --- a/src/features/shell-sync/main/compute-unix-shell-environment.injectable.ts +++ b/src/features/shell-sync/main/compute-unix-shell-environment.injectable.ts @@ -84,6 +84,7 @@ const computeUnixShellEnvironmentInjectable = getInjectable({ } else if (!cshLikeShellName.test(shellName)) { // zsh (at least, maybe others) don't load RC files when in non-interactive mode, even when using -l (login) option shellArgs.push("-i"); + command = ` ${command}`; // This prevents the command from being added to the history } else { // Some shells don't support any other options when providing the -l (login) shell option }