Browse code

Merge branch 'master' of https://github.com/flazz/oh-my-zsh into flazz-master

Robby Russell authored on 14/01/2011 at 14:36:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
0
+if [ "$(whoami)" = "root" ]
1
+then CARETCOLOR="red"
2
+else CARETCOLOR="blue"
3
+fi
4
+
5
+local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
6
+
7
+PROMPT='%m%{${fg_bold[magenta]}%} :: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}%#%{${reset_color}%} '
8
+
9
+RPS1='$(vi_mode_prompt_info) ${return_code}'
10
+
11
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}‹"
12
+ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
13
+
14
+MODE_INDICATOR="%{$fg_bold[magenta]%}<%{$reset_color%}%{$fg[magenta]%}<<%{$reset_color%}"
15
+
16
+# TODO use 265 colors
17
+#MODE_INDICATOR="$FX[bold]$FG[020]<$FX[no_bold]%{$fg[blue]%}<<%{$reset_color%}"
18
+# TODO use two lines if git