From a717a7a8c7fca53bddba8177e987af185c7fcdfb Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 15 Jun 2009 11:29:59 +0200 Subject: [Prompt] Gets and show current CVS tag --- 12_Prompts.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 68bcc5f..06c8611 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -227,6 +227,16 @@ update_prompt() ## Second line of prompt : don't let the path garbage the entire line ## + # get cvs tag + # + CVSTAG="" + [ "$DEBUG" = "yes" ] && echo -n " CVS status..." + if [ -d CVS ] + then + CVSTAG=$(cat CVS/Tag) + CVSTAG=${CVSTAG:+ $C_$prompt_colors[up_to_date]$_C$CVSTAG} + fi + # get svn status # [ "$DEBUG" = "yes" ] && echo -n " SVN status..." @@ -298,7 +308,7 @@ redisplay_prompt () # Note que pour le pwd, on n'affiche que les 4 derniers dossiers pour éviter # de pourrir le fenêtre de terminal avec un prompt à rallonge. PS1="$AGENTS""$MAILSTAT""$ERROR""$BATTERY"$C_$prompt_colors[bar]$_C"$HBAR""$DATE -"$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m $CURDIR$SVNREV$GITBRANCH "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " +"$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m $CURDIR$CVSTAG$SVNREV$GITBRANCH "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " } -- cgit v1.2.3