diff options
author | Adam Lindberg <eproxus@gmail.com> | 2011-06-07 15:28:43 +0200 |
---|---|---|
committer | Adam Lindberg <eproxus@gmail.com> | 2011-06-07 15:28:43 +0200 |
commit | 70cb607b7bee04ceef74d6f7aa80589e009e4c78 (patch) | |
tree | 3c381baf86e577703f35312f3d9d7721c1c4e177 /themes | |
parent | a9b6f081b4a405dd1365df9c35aa3603196e3fc7 (diff) | |
download | zsh-70cb607b7bee04ceef74d6f7aa80589e009e4c78.tar.gz zsh-70cb607b7bee04ceef74d6f7aa80589e009e4c78.tar.bz2 zsh-70cb607b7bee04ceef74d6f7aa80589e009e4c78.zip |
Remove unused colors and use original prompt color
Diffstat (limited to 'themes')
-rw-r--r-- | themes/guru.zsh-theme | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/themes/guru.zsh-theme b/themes/guru.zsh-theme index aa7b28b34..b99cd816e 100644 --- a/themes/guru.zsh-theme +++ b/themes/guru.zsh-theme @@ -6,23 +6,17 @@ # Color shortcuts R=$fg[red] -Y=$fg[yellow] G=$fg[green] M=$fg[magenta] -W=$fg[white] -B=$fg[black] RB=$fg_bold[red] YB=$fg_bold[yellow] -GB=$fg_bold[green] -MB=$fg_bold[magenta] -WB=$fg_bold[white] -BB=$fg_bold[black] +BB=$fg_bold[blue] RESET=$reset_color if [ "$(whoami)" = "root" ]; then PROMPTCOLOR="%{$RB%}" PREFIX="-!-"; else - PROMPTCOLOR="%{$BB%}" PREFIX="---"; + PROMPTCOLOR="" PREFIX="---"; fi local return_code="%(?..%{$R%}%? ↵%{$RESET%})" @@ -75,7 +69,8 @@ function custom_git_prompt() { echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_prompt_ahead)$(custom_git_prompt_status)$ZSH_THEME_GIT_PROMPT_SUFFIX" } -PROMPT='${PROMPTCOLOR}$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} ' +# %B sets bold text +PROMPT='%B$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} ' RPS1="${return_code}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$YB%}‹" |