User can set COMP_COLOR in local files
This commit is contained in:
parent
c43eb77fc1
commit
dbbd3a136c
4
.zshrc
4
.zshrc
|
@ -28,8 +28,10 @@ precmd() { vcs_info }
|
|||
|
||||
zstyle ':vcs_info:git:*' formats ' [%b]'
|
||||
|
||||
_COMP_COLOR=${COMP_COLOR:-"{white}"}
|
||||
|
||||
setopt PROMPT_SUBST
|
||||
PROMPT='[%(!.%B%F{red}.%B%F{blue})%n%B%F{white}@%m%b%f] %b%F{green}%~%B%F{yellow}${vcs_info_msg_0_} %B%f$%b%f '
|
||||
PROMPT="[%(!.%B%F{red}.%B%F{blue})%n%b%F{white}@%B%F$_COMP_COLOR%m%b%f] %b%F{green}%~%B%F{yellow}${vcs_info_msg_0_} %B%f$%b%f "
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
|
|
Loading…
Reference in New Issue