summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbash-git-prompt.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/bash-git-prompt.in b/bash-git-prompt.in
index b678bfb..e39ea81 100755
--- a/bash-git-prompt.in
+++ b/bash-git-prompt.in
@@ -7,11 +7,11 @@
[ -z "$PS1Start" ] && [ -z "$PS1Ende" ] &&
if echo "$PS1" | grep -q "\S"
then
- PS1Ende="$(echo "$PS1" | sed 's|^.*[^\]\(\\\?[$#>]\s*\([]\\[0-9m]\)*\s*\)$|\1|')"
- PS1Start="$(echo "$PS1" | sed 's|\\\?[$#>]\s*\([]\\[0-9m]\)*\s*$||')"
+ export PS1Ende="$(echo "$PS1" | sed 's|^.*[^\]\(\\\?[$#>]\s*\([]\\[0-9m]\)*\s*\)$|\1|')"
+ export PS1Start="$(echo "$PS1" | sed 's|\\\?[$#>]\s*\([]\\[0-9m]\)*\s*$||')"
else
- PS1Ende=""
- PS1Start="$PS1"
+ export PS1Ende=""
+ export PS1Start="$PS1"
fi
PS1="$PS1Start"