summaryrefslogtreecommitdiffstats
path: root/zsh-custom
diff options
context:
space:
mode:
Diffstat (limited to 'zsh-custom')
-rw-r--r--zsh-custom/themes/custom.zsh-theme30
1 files changed, 30 insertions, 0 deletions
diff --git a/zsh-custom/themes/custom.zsh-theme b/zsh-custom/themes/custom.zsh-theme
new file mode 100644
index 0000000..31ff6c4
--- /dev/null
+++ b/zsh-custom/themes/custom.zsh-theme
@@ -0,0 +1,30 @@
+# custom.zsh-theme
+# based on the af-magic theme
+
+local return_code="%(?..%{$fg[red]%}:%?%{$reset_color%})"
+
+# primary prompt
+PROMPT='$FG[032]%(8~"[..]/")%7~\
+$(git_prompt_info) \
+$FG[105]%1(j.[%j] .)%(!.#.$)%{$reset_color%} '
+PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
+RPS1='${return_code}'
+
+# color vars
+eval my_gray='$FG[237]'
+eval my_orange='$FG[214]'
+
+# right prompt
+#if type "virtualenv_prompt_info" > /dev/null
+#then
+ #RPROMPT='$(virtualenv_prompt_info)$my_gray%n@%m%{$reset_color%}%'
+#else
+ #RPROMPT='$my_gray%n@%m%{$reset_color%}%'
+#fi
+
+# git settings
+ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075] ("
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+ZSH_THEME_GIT_PROMPT_DIRTY="$my_orange*%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
+