0cd956c59692d5e4e7bc01138b96b1537b6d821a

Author
Dieter Plaetinck <dieter@plaetinck.be>
Committer
Dieter Plaetinck <dieter@plaetinck.be>
Date

Message

better phrasing/documentation

Diff

 1diff --git a/themes/dieter.zsh-theme b/themes/dieter.zsh-theme
 2index a14829fc0fe87c67f7b8ed5f8589bc20f4dafee4..0a5e9265bd680e628c2da9ae61b5ae37159d1214 100644
 3--- a/themes/dieter.zsh-theme
 4+++ b/themes/dieter.zsh-theme
 5@@ -1,20 +1,22 @@
 6-# the idea of this theme is to contain a lot of info in a small string, by compressing some parts,
 7-# and colorcoding, which bring useful visual cues.  While limiting the amount of colors and such to keep
 8-# it easy on the eyes
 9-# exact return code (when >0) is on the right, so it stays out of the way
10-# The visual cues for >0 exit codes will only display once
11+# the idea of this theme is to contain a lot of info in a small string, by
12+# compressing some parts and colorcoding, which bring useful visual cues,
13+# while limiting the amount of colors and such to keep it easy on the eyes.
14+# When a command exited >0, the timestamp will be in red and the exit code
15+# will be on the right edge.
16+# The exit code visual cues will only display once.
17 # (i.e. they will be reset, even if you hit enter a few times on empty command prompts)
18 
19 typeset -A host_repr
20-host_repr=('dieter-ws-a7n8x-arch' "%{$fg_bold[green]%}ws" 'dieter-p4sci-arch' "%{$fg_bold[blue]%}p4")
21 
22+# translate hostnames into shortened, colorcoded strings
23+host_repr=('dieter-ws-a7n8x-arch' "%{$fg_bold[green]%}ws" 'dieter-p4sci-arch' "%{$fg_bold[blue]%}p4")
24 
25-# local time, color coded after last return code
26+# local time, color coded by last return code
27 time_enabled="%(?.%{$fg[green]%}.%{$fg[red]%})%*%{$reset_color%}"
28 time_disabled="%{$fg[green]%}%*%{$reset_color%}"
29 time=$time_enabled
30 
31-# user part, color coded after privileges
32+# user part, color coded by privileges
33 local user="%(!.%{$fg[blue]%}.%{$fg[blue]%})%n%{$reset_color%}"
34 
35 # Hostname part.  compressed and colorcoded per host_repr array
36@@ -26,7 +28,8 @@ local pwd="%{$fg[blue]%}%c%{$reset_color%}"
37 
38 PROMPT='${time} ${user}${host} ${pwd} $(git_prompt_info)'
39 
40-# i would prefer 1 icon that shows the "most drastic" deviation from head, but lets see how this works out
41+# i would prefer 1 icon that shows the "most drastic" deviation from HEAD,
42+# but lets see how this works out
43 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
44 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
45 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}?%{$fg[green]%}%{$reset_color%}"