From e6844ad6f2f558bdecc6b5366adea406952001dd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 May 2022 21:24:32 +0530 Subject: [PATCH] ssh kitten: Run bash as a login shell This fell through the cracks in the rewrite for automatic shell integration. Fixes #5130 --- docs/changelog.rst | 3 +++ shell-integration/ssh/bootstrap-utils.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index a5c628b60..50951c4eb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -39,6 +39,9 @@ Detailed list of changes - Fix a bug that caused :opt:`macos_colorspace` to always be ``default`` regardless of its actual value (:iss:`5129`) +- ssh kitten: Fix bash not being executed as a login shell since kitty 0.25.0 (:iss:`5130`) + + 0.25.1 [2022-05-26] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/shell-integration/ssh/bootstrap-utils.sh b/shell-integration/ssh/bootstrap-utils.sh index de8b43907..c3cf8a036 100644 --- a/shell-integration/ssh/bootstrap-utils.sh +++ b/shell-integration/ssh/bootstrap-utils.sh @@ -125,7 +125,7 @@ exec_bash_with_integration() { export HISTFILE="$HOME/.bash_history" export KITTY_BASH_UNEXPORT_HISTFILE="1" fi - exec "$login_shell" "--posix" + exec "$login_shell" "--login" "--posix" } exec_with_shell_integration() {