summaryrefslogtreecommitdiff
path: root/themes/af-magic.zsh-theme
diff options
context:
space:
mode:
authorPeter Tillemans <pti@snamellit.com>2012-07-16 17:29:18 +0200
committerPeter Tillemans <pti@snamellit.com>2012-07-16 17:29:18 +0200
commit6756be7e5b0d41c3c4f047d8d9b9e2af9bb3cb0a (patch)
tree6bc26023650301e50def993b4489bb01351e0478 /themes/af-magic.zsh-theme
parentcc98254b62658a988dd8cee0d5e1cb4172b6a064 (diff)
parent11034217a7ea3cffe6e0fe631837c518b8c7e1a5 (diff)
downloadzsh-6756be7e5b0d41c3c4f047d8d9b9e2af9bb3cb0a.tar.gz
zsh-6756be7e5b0d41c3c4f047d8d9b9e2af9bb3cb0a.tar.bz2
zsh-6756be7e5b0d41c3c4f047d8d9b9e2af9bb3cb0a.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/af-magic.zsh-theme')
-rw-r--r--themes/af-magic.zsh-theme36
1 files changed, 36 insertions, 0 deletions
diff --git a/themes/af-magic.zsh-theme b/themes/af-magic.zsh-theme
new file mode 100644
index 000000000..c1b00c62b
--- /dev/null
+++ b/themes/af-magic.zsh-theme
@@ -0,0 +1,36 @@
+# af-magic.zsh-theme
+#
+# Author: Andy Fleming
+# URL: http://andyfleming.com/
+# Repo: https://github.com/andyfleming/oh-my-zsh
+# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
+#
+# Created on: June 19, 2012
+# Last modified on: June 20, 2012
+
+
+
+if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
+local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
+
+# primary prompt
+PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
+$FG[032]%~\
+$(git_prompt_info) \
+$FG[105]%(!.#.»)%{$reset_color%} '
+PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
+RPS1='${return_code}'
+
+
+# color vars
+eval my_gray='$FG[237]'
+eval my_orange='$FG[214]'
+
+# right prompt
+RPROMPT='$my_gray%n@%m%{$reset_color%}%'
+
+# git settings
+ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075](branch:"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"