Prevent shell sync commands from polluting history

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-11-29 14:44:53 -05:00
1 parent 1e0094bd8e
commit 6e69f86d9c
1 file changed
+1
@@ -84,6 +84,7 @@ const computeUnixShellEnvironmentInjectable = getInjectable({
} else if (!cshLikeShellName.test(shellName)) { } 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 // zsh (at least, maybe others) don't load RC files when in non-interactive mode, even when using -l (login) option
shellArgs.push("-i"); shellArgs.push("-i");
command = ` ${command}`; // This prevents the command from being added to the history
} else { } else {
// Some shells don't support any other options when providing the -l (login) shell option // Some shells don't support any other options when providing the -l (login) shell option
} }