From edbcca8cd2b93b8c88eb62c431d04ea832b73180 Mon Sep 17 00:00:00 2001 From: Tharre Date: Fri, 7 Oct 2016 20:53:06 +0000 Subject: Reorganise dotfiles --- zsh-custom/themes/custom.zsh-theme | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 zsh-custom/themes/custom.zsh-theme (limited to 'zsh-custom/themes') 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%}" + -- cgit v1.2.3-70-g09d2