fix redirect stderr
This commit is contained in:
parent
9685560c33
commit
c8691cc3ea
1 changed files with 1 additions and 2 deletions
3
PS1
3
PS1
|
@ -1,9 +1,8 @@
|
||||||
# /etc/profile.d/PS1.sh: executed by Bourne-compatible login shells.
|
# /etc/profile.d/PS1.sh: executed by Bourne-compatible login shells.
|
||||||
|
|
||||||
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}) 2>/dev/null)"
|
BRANCH="$BRANCH -> $( git rev-parse --symbolic-full-name --abbrev-ref @{u} 2>/dev/null ) )"
|
||||||
echo $BRANCH
|
echo $BRANCH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue