Fix for dumb terminals like Vim's.

This commit is contained in:
Sorin Ionescu 2011-02-27 10:13:57 -05:00
commit 7f8c40fe4b
8 changed files with 22 additions and 17 deletions

View file

@ -1,10 +1,9 @@
# ls colors
autoload colors; colors;
export LSCOLORS="Gxfxcxdxbxegedabagacad"
#export LS_COLORS
[[ -z "$LSCOLORS" ]] && export LSCOLORS="Gxfxcxdxbxegedabagacad"
# Enable ls colors
if [ "$DISABLE_LS_COLORS" != "true" ]
if [ "$DISABLE_COLOR" != "true" ]
then
# Find the option for using colors in ls, depending on the version: Linux or BSD
ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'