summaryrefslogtreecommitdiff
path: root/bash-git-prompt.in
diff options
context:
space:
mode:
Diffstat (limited to 'bash-git-prompt.in')
-rwxr-xr-xbash-git-prompt.in2
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"