Stop erasing output without a newline

Closes #4783
References #4269
This commit is contained in:
David Heinemeier Hansson
2026-02-27 17:44:46 +01:00
parent c3af1fef01
commit 8ac7cd9e23
-3
View File
@@ -3,9 +3,6 @@ if command -v mise &> /dev/null; then
fi
if command -v starship &> /dev/null; then
# clear stale readline state before rendering prompt (prevents artifacts in prompt after abnormal exits like SIGQUIT)
__sanitize_prompt() { printf '\r\033[K'; }
PROMPT_COMMAND="__sanitize_prompt${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
eval "$(starship init bash)"
fi