Clean up appearance lib file and redundant colors calls in other files

This commit is contained in:
Marc Cornellà 2015-02-09 20:43:48 +01:00
commit 2193135ebc
13 changed files with 12 additions and 39 deletions

View file

@ -63,10 +63,7 @@ setprompt () {
###
# See if we can use colors.
autoload colors zsh/terminfo
if [[ "$terminfo[colors]" -ge 8 ]]; then
colors
fi
autoload zsh/terminfo
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'