diff options
author | Tharre <tharre3@gmail.com> | 2015-08-10 04:51:45 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2016-10-07 20:13:35 +0000 |
commit | 34aa68663875f74c0cb05718719a49cefd1f574d (patch) | |
tree | 399b70b6e9aa3f76924bcc154dff6e3ac4c01ac6 /shell/themes | |
parent | 7f4d325414fa4f49669951e25141e0c456817540 (diff) | |
download | dotfiles-34aa68663875f74c0cb05718719a49cefd1f574d.tar.gz dotfiles-34aa68663875f74c0cb05718719a49cefd1f574d.tar.xz dotfiles-34aa68663875f74c0cb05718719a49cefd1f574d.zip |
Add custom theme
Diffstat (limited to 'shell/themes')
-rw-r--r-- | shell/themes/custom.zsh-theme | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/shell/themes/custom.zsh-theme b/shell/themes/custom.zsh-theme new file mode 100644 index 0000000..41d2cb0 --- /dev/null +++ b/shell/themes/custom.zsh-theme @@ -0,0 +1,31 @@ +# custom.zsh-theme +# based on the af-magic theme + +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +local return_code="%(?..%{$fg[red]%}:%?%{$reset_color%})" + +# primary prompt +PROMPT='$FG[032]%(7~"[..]/")%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%}" + |