summaryrefslogtreecommitdiffstats
path: root/zsh-custom
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2016-10-07 20:53:06 +0000
committerTharre <tharre3@gmail.com>2016-10-16 15:23:59 +0000
commitedbcca8cd2b93b8c88eb62c431d04ea832b73180 (patch)
treebac188c0ee4c1c214dd50568e70783a7ee2c3565 /zsh-custom
parentd4f1a0f27100ff2f4380fa4cf38b09e7f0c051f7 (diff)
downloaddotfiles-edbcca8cd2b93b8c88eb62c431d04ea832b73180.tar.gz
dotfiles-edbcca8cd2b93b8c88eb62c431d04ea832b73180.tar.xz
dotfiles-edbcca8cd2b93b8c88eb62c431d04ea832b73180.zip
Reorganise dotfiles
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%}"
+