diff options
author | Erich Eckner <git@eckner.net> | 2016-10-06 15:19:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-10-06 15:19:08 +0200 |
commit | 689165bab3c7ccfc1aea1a7ab8469ea6dcf66acf (patch) | |
tree | 2eb5ae9afcd55ef91b7be73d6557e3801ca6bfc0 /bash-git-prompt.in | |
parent | 7a51d7db21fe00fd537e50237c11a8db02db5a21 (diff) | |
download | bash-git-prompt-689165bab3c7ccfc1aea1a7ab8469ea6dcf66acf.tar.xz |
bugfix: type
Diffstat (limited to 'bash-git-prompt.in')
-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" |