From 0eb31eefc1b482d5a5164d828e97164a8dbf5de7 Mon Sep 17 00:00:00 2001 From: Petr Grishin Date: Tue, 29 Apr 2014 09:20:35 +0400 Subject: [PATCH] Add clear simple theme --- themes/petrgrishin.zsh-theme | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 themes/petrgrishin.zsh-theme diff --git a/themes/petrgrishin.zsh-theme b/themes/petrgrishin.zsh-theme new file mode 100644 index 000000000..97311fad1 --- /dev/null +++ b/themes/petrgrishin.zsh-theme @@ -0,0 +1,38 @@ +# # # +# @author Petr Grishin +# Sample: petrgrishin ~/git/project [rc!] % 9:18 +# # # +if [[ $EUID == 0 ]] +then +PROMPT=$'%{\e[1;31m%}%n %{\e[1;34m%}%~$(git_prompt_info) #%{\e[0m%} ' # user dir % +else +PROMPT=$'%{\e[1;32m%}%n %{\e[1;34m%}%~$(git_prompt_info) %#%{\e[0m%} ' # root dir # +fi +RPROMPT=$'%{\e[1;34m%}%T%{\e[0m%}' # right prompt with time + +ZSH_THEME_GIT_PROMPT_PREFIX=" [" +ZSH_THEME_GIT_PROMPT_SUFFIX="]" +ZSH_THEME_GIT_PROMPT_DIRTY="!" +ZSH_THEME_GIT_PROMPT_CLEAN="" + +alias ls='ls -G' +alias grep='grep --color=auto' + +# The variables are wrapped in \%\{\%\}. This should be the case for every +# variable that does not contain space. +for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do + eval PR_$COLOR='%{$fg_no_bold[${(L)COLOR}]%}' + eval PR_BOLD_$COLOR='%{$fg_bold[${(L)COLOR}]%}' +done + +eval RESET='$reset_color' +export PR_RED PR_GREEN PR_YELLOW PR_BLUE PR_WHITE PR_BLACK +export PR_BOLD_RED PR_BOLD_GREEN PR_BOLD_YELLOW PR_BOLD_BLUE +export PR_BOLD_WHITE PR_BOLD_BLACK + +# Clear LSCOLORS +unset LSCOLORS + +# Main change, you can see directories on a dark background +export CLICOLOR=1 +export LS_COLORS=exfxcxdxbxegedabagacad