add old zshconfig

This commit is contained in:
Thomas Preisner 2016-10-25 18:21:43 +02:00
parent ffda4c1ff4
commit 1ef3a363de
8 changed files with 267 additions and 0 deletions

26
zsh/colors.zsh Normal file
View file

@ -0,0 +1,26 @@
autoload colors; colors
# 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 LSCOLORS=gxfxcxdxbxegedabagacad
export CLICOLOR=1
if [[ $IS_MAC -eq 1 ]]; then
export LSCOLORS=gxfxcxdxbxegedabagacad
fi
export LS_COLORS=di='36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'