Change color on * to red, and add git repo name.

This commit is contained in:
2015-09-02 10:08:58 +02:00
parent b8b4c5b715
commit 8971ec6e8f

View File

@@ -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,