Port HISTFILE fix to ssh bash launcher

This commit is contained in:
Kovid Goyal
2022-03-03 21:24:45 +05:30
parent 7d653cb7bf
commit 1c558be524
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -214,6 +214,10 @@ shell_name=$(basename $login_shell)
exec_bash_with_integration() {
export ENV="$shell_integration_dir/bash/kitty.bash"
export KITTY_BASH_INJECT="1"
if [ -z "$HISTFILE" ]; then
export HISTFILE="$HOME/.bash_history"
export KITTY_BASH_UNEXPORT_HISTFILE="1"
fi
exec "$login_shell" "--posix"
}