~andrewzah/dotfiles

ref: osx dotfiles/zsh/colors.zsh -rw-r--r-- 491 bytes
8b6e98a5Andrew Zah update 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
# 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 PR_MAGENTA
export PR_BOLD_RED PR_BOLD_GREEN PR_BOLD_YELLOW PR_BOLD_BLUE PR_BOLD_MAGENTA
export PR_BOLD_WHITE PR_BOLD_BLACK