fix paranthesis

This commit is contained in:
Jakobus Schürz 2020-07-14 00:58:46 +02:00
parent 2656558774
commit 0fa072f766

2
PS1
View file

@ -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:]]*//' )" local RBRANCH="$( git rev-parse --symbolic-full-name --abbrev-ref @{u} 2>/dev/null |sed -e 's/^[[:blank:]]*//' )"
[ -z "${RBRANCH-x}" ] && unset RBRANCH [ -z "${RBRANCH-x}" ] && unset RBRANCH
local BRANCH="${LBRANCH}${RBRANCH+ -> }${RBRANCH}" local BRANCH="${LBRANCH}${RBRANCH+ -> }${RBRANCH}"
[ -z "${LBRANCH+x}" ] || echo "($BRANCH)" [ -z "${BRANCH-x}" ] || echo "($BRANCH)"
} }
set_label() { set_label() {