Dont leak the ENV environ var we use to load our integration script into the shell
This commit is contained in:
parent
88091b4ab3
commit
0108037076
@ -34,9 +34,11 @@ _ksi_main() {
|
||||
}
|
||||
|
||||
if [[ -n "$KITTY_BASH_INJECT" ]]; then
|
||||
builtin unset ENV;
|
||||
if [[ "$KITTY_BASH_INJECT" == *"posix"* ]]; then
|
||||
if [[ -n "$KITTY_BASH_POSIX_ENV" && -r "$KITTY_BASH_POSIX_ENV" ]]; then
|
||||
builtin source "$KITTY_BASH_POSIX_ENV";
|
||||
export ENV="$KITTY_BASH_POSIX_ENV";
|
||||
fi
|
||||
else
|
||||
set +o posix;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user