From 8cf3142751303e0134cdd7a078f81ab2e292e294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 14 Jul 2020 08:25:20 +0200 Subject: [PATCH] really fix PS1 uniq paranthesis --- PS1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PS1 b/PS1 index 075f263..095e0bd 100644 --- a/PS1 +++ b/PS1 @@ -5,7 +5,7 @@ parse_git_branch() { local RBRANCH="$( git rev-parse --symbolic-full-name --abbrev-ref @{u} 2>/dev/null |sed -e 's/^[[:blank:]]*//' )" [ -z "${RBRANCH-x}" ] && unset RBRANCH local BRANCH="${LBRANCH}${RBRANCH+ -> }${RBRANCH}" - [ -z "${BRANCH-x}" ] || echo "($BRANCH)|tr -s '()'" + [ -z "${BRANCH-x}" ] || echo "($BRANCH)"|tr -s '()' } set_label() {