From dd26c00db379817b55264b1fc50ef6ef811e4ddd Mon Sep 17 00:00:00 2001 From: George Tsafas Date: Thu, 22 Sep 2011 09:26:09 -0400 Subject: [PATCH] basic theme now changes prompt color using env var BASIC_COLOR=green --- themes/basic.zsh-theme | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/basic.zsh-theme b/themes/basic.zsh-theme index 1eb673525..0f24df333 100644 --- a/themes/basic.zsh-theme +++ b/themes/basic.zsh-theme @@ -1,6 +1,9 @@ if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi -PROMPT='%{$fg[white]%}%B%c%b%{$reset_color%}$(git_prompt_info) %(!.#.$) ' +if [[ -z $BASIC_COLOR ]]; then SHELL_COLOR="white"; else SHELL_COLOR=$BASIC_COLOR ; fi + + +PROMPT='%{$fg[white]%}%B%c%b%{$reset_color%}$(git_prompt_info)%{$fg_bold[$SHELL_COLOR]%} %(!.#.$) ' RPROMPT='%{$fg_bold[$NCOLOR]%}%n%{$fg_bold[blue]%}@%{$fg_bold[white]%}%m %{$fg_bold[white]%}%*%{$reset_color%}'