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

This commit is contained in:
Marc Cornellà committed 2015-02-10 19:22:50 +01:00
1 parent 51946eb3ce
commit 2193135ebc
13 files changed
+12 -39

No files matched your search

+1 -4
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}]%}'