Merge pull request #1967 from jparise/bash-prompt-end

bash: always send "end of command" prompt sequence
This commit is contained in:
Mitchell Hashimoto
2024-07-18 09:34:01 -07:00
committed by GitHub

View File

@@ -140,7 +140,8 @@ function __ghostty_precmd() {
fi fi
fi fi
if test "$_ghostty_executing" != "0"; then if test "$_ghostty_executing" != ""; then
# End of current command. Report its status.
builtin printf "\033]133;D;%s;aid=%s\007" "$ret" "$BASHPID" builtin printf "\033]133;D;%s;aid=%s\007" "$ret" "$BASHPID"
fi fi
@@ -152,6 +153,7 @@ function __ghostty_precmd() {
builtin printf "\e]7;kitty-shell-cwd://%s%s\a" "$HOSTNAME" "$PWD" builtin printf "\e]7;kitty-shell-cwd://%s%s\a" "$HOSTNAME" "$PWD"
fi fi
# Fresh line and start of prompt.
builtin printf "\033]133;A;aid=%s\007" "$BASHPID" builtin printf "\033]133;A;aid=%s\007" "$BASHPID"
_ghostty_executing=0 _ghostty_executing=0
} }