From 689165bab3c7ccfc1aea1a7ab8469ea6dcf66acf Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 6 Oct 2016 15:19:08 +0200 Subject: bugfix: type --- bash-git-prompt.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-54-g00ecf