mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
fix svn branch name prompt: when not trunk, display NOT trunk
This commit is contained in:
parent
3a73464766
commit
c78069d2e2
1 changed files with 3 additions and 1 deletions
|
|
@ -46,8 +46,10 @@ function svn_get_branch_name() {
|
|||
|
||||
if [ "x$_DISPLAY" = "x" ]; then
|
||||
svn_get_repo_name
|
||||
elif [ "x$_DISPLAY" = "xtrunk" ]; then
|
||||
echo "trunk"
|
||||
else
|
||||
echo $_DISPLAY
|
||||
echo "NOT trunk"
|
||||
fi
|
||||
unset _DISPLAY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue