1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 05:05:28 +00:00
Files
zsh/zsh.d/30-termcolors
andre 5b09568680 New version of zsh startup files:
- Supports Darwin AND Linux
- No more .zshrc.local
- New completion (BETA)
2010-11-18 08:49:41 +00:00

14 lines
460 B
Bash

#######################################################################################
# Colorize terminal
autoload colors zsh/terminfo
if [[ "$terminfo[colors]" -ge 8 ]]; then
colors
fi
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}]%}'
(( count = $count + 1 ))
done
PR_NO_COLOR="%{$terminfo[sgr0]%}"
# vim: set ts=4 sw=4 tw=0 ft=zsh :