redirect stderr to /dev/null
This commit is contained in:
parent
bb27f2e3d0
commit
9685560c33
1 changed files with 1 additions and 1 deletions
2
PS1
2
PS1
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue