From 4d7cfb05b81ff4301f0c2e58cbfa763cf9dfd909 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 8 Mar 2012 13:45:04 +0100 Subject: [Prompt] subdir --- 12_Prompts.zsh | 2 +- 61_VCS.zsh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index e77cf4b..ac71fc9 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -293,7 +293,7 @@ __update_prompt_elements() CURDIR=${CURDIR/\/$SUBDIR/} fi CURDIR="$C_$_prompt_colors[path]$_C%`echo $spaceleft`<..<"$CURDIR"%<<$C_$color[none]$_C" - [ "$VCSSUBDIR" = "$SUBDIR" ] && CURDIR+=$C_$color[cyan]";"$color[bold]$_C"/"$C_$_prompt_colors[path]$_C$VCSSUBDIR + [ "$VCSSUBDIR" = "$SUBDIR" ] && CURDIR+=$C_$_prompt_colors[path]$_C"/"$C_$_prompt_colors[generic]$_C$VCSSUBDIR [ "$DEBUG" = "yes" ] && echo } diff --git a/61_VCS.zsh b/61_VCS.zsh index 6122083..f47cbca 100644 --- a/61_VCS.zsh +++ b/61_VCS.zsh @@ -13,8 +13,8 @@ _reset_=$C_$_prompt_colors[soft_generic]$_C autoload -Uz vcs_info -zstyle ':vcs_info:*' formats "$_reset_ [%c%u%b$_reset_]" "%R" "%S" -zstyle ':vcs_info:*' actionformats "$_reset_ [(%B%a$_reset_) %c%u%b$_reset_]$_reset_" "%R" "%S" +zstyle ':vcs_info:*' formats "$_reset_ %c%u%b$_reset_" "%R" "%S" +zstyle ':vcs_info:*' actionformats "$_reset_ (%B%a$_reset_) %c%u%b$_reset_" "%R" "%S" zstyle ':vcs_info:*' stagedstr "$C_$color[yellow];$color[bold]$_C" zstyle ':vcs_info:*' unstagedstr "$_C_$color[green]$_C" zstyle ':vcs_info:*' check-for-changes true -- cgit v1.2.3