summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-08 13:45:04 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-08 13:47:21 +0100
commit4d7cfb05b81ff4301f0c2e58cbfa763cf9dfd909 (patch)
treecd2d1342c84a03cd273f112353e8f9c7e09fabcc
parentbd2cf0596e034faa04528658e0355ac4ed319871 (diff)
[Prompt] subdirvcsinfo
-rw-r--r--12_Prompts.zsh2
-rw-r--r--61_VCS.zsh4
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