redirect stderr to /dev/null

This commit is contained in:
Jakobus Schürz 2020-07-10 01:36:46 +02:00
parent bb27f2e3d0
commit 9685560c33

2
PS1
View file

@ -3,7 +3,7 @@
parse_git_branch() { parse_git_branch() {
local BRANCH=$(git branch 2>/dev/null | sed -ne 's/* \(.*\)/ (\1/p') local BRANCH=$(git branch 2>/dev/null | sed -ne 's/* \(.*\)/ (\1/p')
BRANCH="$BRANCH -> $( git rev-parse --symbolic-full-name --abbrev-ref @{u}) )" BRANCH="$BRANCH -> $( git rev-parse --symbolic-full-name --abbrev-ref @{u}) 2>/dev/null)"
echo $BRANCH echo $BRANCH
} }