Created
December 8, 2012 15:22
-
-
Save mnewt/4240731 to your computer and use it in GitHub Desktop.
Add Colors To Your ZSH Scripts from http://pthree.org/2009/12/18/add-colors-to-your-zsh-scripts/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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