From 8971ec6e8f60c2d7b27561dcdb33859f4e44120b Mon Sep 17 00:00:00 2001 From: logaritmisk Date: Wed, 2 Sep 2015 10:08:58 +0200 Subject: [PATCH] Change color on * to red, and add git repo name. --- pure.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pure.zsh b/pure.zsh index 99b5718..65a79a0 100644 --- a/pure.zsh +++ b/pure.zsh @@ -223,7 +223,7 @@ prompt_pure_async_git_dirty() { test -z "$(command git status --porcelain --ignore-submodules -unormal)" fi - (( $? )) && echo "*" + (( $? )) && echo "%F{red}*%f" } prompt_pure_async_git_fetch() { @@ -320,7 +320,7 @@ prompt_pure_setup() { zstyle ':vcs_info:*' max-exports 2 # vcs_info_msg_0_ = ' %b' (for branch) # vcs_info_msg_1_ = 'x%R' git top level (%R), x-prefix prevents creation of a named path (AUTO_NAME_DIRS) - zstyle ':vcs_info:git*' formats ' %b' 'x%R' + zstyle ':vcs_info:git*' formats ' %r|%b' 'x%R' zstyle ':vcs_info:git*' actionformats ' %b|%a' 'x%R' # if the user has not registered a custom zle widget for clear-screen,