From a765d551e4bae79bd637f9396cd3538e1f95a185 Mon Sep 17 00:00:00 2001 From: pagedown Date: Wed, 23 Mar 2022 19:29:18 +0800 Subject: [PATCH] Fix bash integration cwd reporting missing hostname --- shell-integration/bash/kitty.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 9df08f86a..2fa1c0f81 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -157,7 +157,7 @@ _ksi_main() { # command like cd /test && cat. PS0 is evaluated before cd is run. if [[ "${_ksi_prompt[last_reported_cwd]}" != "$PWD" ]]; then _ksi_prompt[last_reported_cwd]="$PWD"; - builtin printf "\e]7;kitty-shell-cwd://%s%s\a" "$HOST" "$PWD" + builtin printf "\e]7;kitty-shell-cwd://%s%s\a" "$HOSTNAME" "$PWD" fi fi }