1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Prevent shell sync commands from polluting history

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-11-29 14:44:53 -05:00
parent 1e0094bd8e
commit 6e69f86d9c

View File

@ -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
}