From c78069d2e20be74a893ee6bcc04db43ea76c8927 Mon Sep 17 00:00:00 2001 From: shiludeng Date: Mon, 13 Apr 2015 18:15:32 +0800 Subject: [PATCH] fix svn branch name prompt: when not trunk, display NOT trunk --- plugins/svn/svn.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh index a9c39b6db..d8ed34079 100644 --- a/plugins/svn/svn.plugin.zsh +++ b/plugins/svn/svn.plugin.zsh @@ -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 }