Change color on * to red, and add git repo name.
This commit is contained in:
4
pure.zsh
4
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,
|
||||
|
||||
Reference in New Issue
Block a user