Browse code

Merge pull request #92 from re5et/master

added my zsh-theme

Robby Russell authored on 26/05/2011 at 07:54:58
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,15 @@
0
+if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
1
+
2
+local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
3
+
4
+PROMPT='
5
+%{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
6
+%{${fg[$CARETCOLOR]}%}%# %{${reset_color}%}'
7
+
8
+RPS1='${return_code} %D - %*'
9
+
10
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[magenta]%}^%{$reset_color%}%{$fg_bold[yellow]%}"
11
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
12
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ±"
13
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ?"
14
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"