zshrc: Use vcs_info data for GRMLPROMPT > 0, too
authorFrank Terbeck <ft@bewatermyfriend.org>
Mon, 3 Aug 2009 14:24:56 +0000 (16:24 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Mon, 3 Aug 2009 14:24:56 +0000 (16:24 +0200)
etc/zsh/zshrc

index c1a619f..c6e0eca 100644 (file)
@@ -2156,7 +2156,7 @@ else
     # set variable identifying the chroot you work in (used in the prompt below)
     if [[ $GRMLPROMPT -gt 0 ]] ; then
         PROMPT="${RED}${EXITCODE}${CYAN}[%j running job(s)] ${GREEN}{history#%!} ${RED}%(3L.+.) ${BLUE}%* %D
-${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# "
+${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< "'${VCS_INFO_message_0_}'"%# "
     else
         # This assembles the primary prompt string
         if (( EUID != 0 )); then