From 34a1b4c2988875ba064cd3a261f3d3b8c63d7f8e Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Mon, 21 May 2007 21:58:39 +0100 Subject: [PATCH] Don't use / as separatar since it is common i branch names Don't use / as separatar since it is common i branch names Signed-off-by: Robin Rosenberg --- contrib/stgbashprompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/stgbashprompt.sh b/contrib/stgbashprompt.sh index f4817a1..5927e67 100755 --- a/contrib/stgbashprompt.sh +++ b/contrib/stgbashprompt.sh @@ -9,8 +9,8 @@ if [ "$PS1" ]; then ref=$(git-symbolic-ref HEAD 2> /dev/null) || return br=${ref#refs/heads/} top=$(tail -n 1 $git_dir/patches/$br/applied 2>/dev/null) \ - && top="/$top"; - echo "[$br$top]" + top=${top:-(none)} + echo "[$top@$br]" } PS1='\u@\h:$(__prompt_git)\W\$ ' fi -- 2.11.0