Browse code

better phrasing/documentation

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