From d352edbe2e33ccd9a436b8b2b57555b261fd0bd0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 6 Oct 2016 11:37:52 +0200 Subject: export PS1Start/Ende --- bash-git-prompt.in | 8 ++++---- 1 file 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" -- cgit v1.2.3-70-g09d2