diff options
-rwxr-xr-x | bash-git-prompt.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-git-prompt.in b/bash-git-prompt.in index 16daab7..d2bbdb3 100755 --- a/bash-git-prompt.in +++ b/bash-git-prompt.in @@ -7,7 +7,7 @@ if [ -z "$PS1Start" ] && [ -z "$PS1Ende" ] && [ -n "$PS1" ] then export PS1Start="$(echo "$PS1" | sed 's@\(\\\[\\033\[[0-9]\+m\\]\|\s\)*\(\\\?\S\)\?\(\\\[\\033\[[0-9]\+m\\]\|\s\)*$@@')" - export PS1Ende="${PS1:${#a}}" + export PS1Ende="${PS1:${#PS1Start}}" fi PS1="$PS1Start" |