mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-06 18:06:33 +00:00
Merge pull request #1967 from jparise/bash-prompt-end
bash: always send "end of command" prompt sequence
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user