Skip to content

Instantly share code, notes, and snippets.

@mnewt
Created December 8, 2012 15:22
Show Gist options
  • Save mnewt/4240731 to your computer and use it in GitHub Desktop.
Save mnewt/4240731 to your computer and use it in GitHub Desktop.
autoload colors
if [[ "$terminfo[colors]" -gt 8 ]]; then
colors
fi
for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
eval $COLOR='$fg_no_bold[${(L)COLOR}]'
eval BOLD_$COLOR='$fg_bold[${(L)COLOR}]'
done
eval RESET='$reset_color'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment