diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 498dd8b46..cf11032e0 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -23,7 +23,7 @@ if [[ -n "$KITTY_BASH_INJECT" ]]; then } else builtin set +o posix - builtin shopt -u inherit_errexit # resetting posix does not clear this + builtin shopt -u inherit_errexit 2>/dev/null # resetting posix does not clear this if [[ -n "$KITTY_BASH_UNEXPORT_HISTFILE" ]]; then builtin export -n HISTFILE builtin unset KITTY_BASH_UNEXPORT_HISTFILE