Browse code

adding my zsh-theme

atom smith authored on 03/10/2010 at 21:41:45
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]%} ♥"
0 15
\ No newline at end of file