11034217a7ea3cffe6e0fe631837c518b8c7e1a5

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1200 from andyfleming/master

New theme af-magic.zsh-theme

Diff

 1diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..c1b00c62bf6ec6889cd0f88c41321b4aabf971a8
 4--- /dev/null
 5+++ b/themes/af-magic.zsh-theme
 6@@ -0,0 +1,36 @@
 7+# af-magic.zsh-theme
 8+#
 9+# Author: Andy Fleming
10+# URL: http://andyfleming.com/
11+# Repo: https://github.com/andyfleming/oh-my-zsh
12+# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
13+#
14+# Created on:		June 19, 2012
15+# Last modified on:	June 20, 2012
16+
17+
18+
19+if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
20+local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
21+
22+# primary prompt
23+PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
24+$FG[032]%~\
25+$(git_prompt_info) \
26+$FG[105]%(!.#.»)%{$reset_color%} '
27+PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
28+RPS1='${return_code}'
29+
30+
31+# color vars
32+eval my_gray='$FG[237]'
33+eval my_orange='$FG[214]'
34+
35+# right prompt
36+RPROMPT='$my_gray%n@%m%{$reset_color%}%'
37+
38+# git settings
39+ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075](branch:"
40+ZSH_THEME_GIT_PROMPT_CLEAN=""
41+ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
42+ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"