fix redirect stderr

This commit is contained in:
Jakobus Schürz 2020-07-10 02:39:30 +02:00
parent 9685560c33
commit c8691cc3ea

3
PS1
View file

@ -1,9 +1,8 @@
# /etc/profile.d/PS1.sh: executed by Bourne-compatible login shells.
parse_git_branch() {
local BRANCH=$(git branch 2>/dev/null | sed -ne 's/* \(.*\)/ (\1/p')
BRANCH="$BRANCH -> $( git rev-parse --symbolic-full-name --abbrev-ref @{u}) 2>/dev/null)"
BRANCH="$BRANCH -> $( git rev-parse --symbolic-full-name --abbrev-ref @{u} 2>/dev/null ) )"
echo $BRANCH
}