From dbbd3a136cdb7d7c7f72bf8aeadd53d79e943c42 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 23 Apr 2020 11:57:16 -0400 Subject: [PATCH] User can set COMP_COLOR in local files --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 482a2ae..eccd1ae 100644 --- a/.zshrc +++ b/.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