Simplified option variables for greater flexibility.

This commit is contained in:
Sorin Ionescu 2011-09-05 15:39:37 -04:00
commit 05c94e2dd5
10 changed files with 25 additions and 25 deletions

View file

@ -64,7 +64,7 @@ export VISUAL="vim"
export PAGER='less'
# Grep
if ! check-bool "$DISABLE_COLOR"; then
if check-bool "$COLOR"; then
export GREP_COLOR='37;45'
export GREP_OPTIONS='--color=auto'
fi
@ -89,7 +89,7 @@ if (( $+commands[lesspipe.sh] )); then
fi
# Termcap
if ! check-bool "$DISABLE_COLOR"; then
if check-bool "$COLOR"; then
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode