Browse code

Add my oh-my-zsh theme

Matthew Gadd authored on 06/04/2010 at 00:24:33
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
0
+
1
+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
2
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
3
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
4
+ZSH_THEME_GIT_PROMPT_CLEAN=""
5
+
6
+function prompt_char {
7
+	if [ "$(whoami)" = "root" ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
8
+}
9
+
10
+PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
11
+)
12
+%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
13
+%_ $(prompt_char) '
14
+
15
+RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'