70cb607b7bee04ceef74d6f7aa80589e009e4c78
- Author
- Adam Lindberg <eproxus@gmail.com>
- Committer
- Adam Lindberg <eproxus@gmail.com>
- Date
Message
Remove unused colors and use original prompt color
Diff
1diff --git a/themes/guru.zsh-theme b/themes/guru.zsh-theme
2index aa7b28b34e3a2249a7763be7b185ddf28fd78348..b99cd816e5fc7791a59f36d93d337b95b40af2df 100644
3--- a/themes/guru.zsh-theme
4+++ b/themes/guru.zsh-theme
5@@ -6,23 +6,17 @@
6
7 # Color shortcuts
8 R=$fg[red]
9-Y=$fg[yellow]
10 G=$fg[green]
11 M=$fg[magenta]
12-W=$fg[white]
13-B=$fg[black]
14 RB=$fg_bold[red]
15 YB=$fg_bold[yellow]
16-GB=$fg_bold[green]
17-MB=$fg_bold[magenta]
18-WB=$fg_bold[white]
19-BB=$fg_bold[black]
20+BB=$fg_bold[blue]
21 RESET=$reset_color
22
23 if [ "$(whoami)" = "root" ]; then
24 PROMPTCOLOR="%{$RB%}" PREFIX="-!-";
25 else
26- PROMPTCOLOR="%{$BB%}" PREFIX="---";
27+ PROMPTCOLOR="" PREFIX="---";
28 fi
29
30 local return_code="%(?..%{$R%}%? ↵%{$RESET%})"
31@@ -75,7 +69,8 @@ function custom_git_prompt() {
32 echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_prompt_ahead)$(custom_git_prompt_status)$ZSH_THEME_GIT_PROMPT_SUFFIX"
33 }
34
35-PROMPT='${PROMPTCOLOR}$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} '
36+# %B sets bold text
37+PROMPT='%B$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} '
38 RPS1="${return_code}"
39
40 ZSH_THEME_GIT_PROMPT_PREFIX="%{$YB%}‹"