diff --git a/bash/prompt b/bash/prompt index 7188c80..a9b4b25 100644 --- a/bash/prompt +++ b/bash/prompt @@ -41,6 +41,9 @@ __tpwd() { __truncate_path "$PWD" } +# clears a line that was not terminated by a LF +# fixing the dangling prompt issue +# marks it with a reverse %, like zsh clear_incomplete_line() { # ask for cursor position echo -en "\033[6n"