Browse code

theme changes

Stephen Middleton authored on 14/01/2011 at 07:26:31
Showing 1 changed files
... ...
@@ -2,14 +2,18 @@ function collapse_pwd {
2 2
     echo $(pwd | sed -e "s,^$HOME,~,")
3 3
 }
4 4
 function prompt_char {
5
-    git branch >/dev/null 2>/dev/null && echo "%{$fg[green]%}±%{$reset_color%}" && return
6
-    echo "%{$fg[red]%}≈%{$reset_color%}"
5
+    echo -n "%{$bg[white]%}%{$fg[red]%}"
6
+    git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return
7
+    echo "≥%{$reset_color%}"
7 8
 }
9
+RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
8 10
 
9
-PROMPT='%{$fg[magenta]%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
11
+PROMPT='
12
+%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
10 13
 $(prompt_char) '
14
+RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
11 15
 
12 16
 ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
13 17
 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
14
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$bg[white]%}%{$fg[red]%}!%{$reset_color%}"
15
-ZSH_THEME_GIT_PROMPT_CLEAN="%{$bg[white]%}%{$fg[red]%}√%{$reset_color%}"
16 18
\ No newline at end of file
19
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
20
+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"
17 21
\ No newline at end of file