summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-06 15:19:08 +0200
committerErich Eckner <git@eckner.net>2016-10-06 15:19:08 +0200
commit689165bab3c7ccfc1aea1a7ab8469ea6dcf66acf (patch)
tree2eb5ae9afcd55ef91b7be73d6557e3801ca6bfc0
parent7a51d7db21fe00fd537e50237c11a8db02db5a21 (diff)
downloadbash-git-prompt-689165bab3c7ccfc1aea1a7ab8469ea6dcf66acf.tar.xz
bugfix: type
-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"