[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New colorls.sh doesn't work with DIR_COLORS.xterm
From: |
Dr. J. Kubiak |
Subject: |
New colorls.sh doesn't work with DIR_COLORS.xterm |
Date: |
Thu, 06 Mar 2008 10:57:58 +0100 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080213) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
some problem with coreutils-6.9-13. The new shellscript
/etc/profile.d/colorls.sh now ignores the color settings in file
/etc/DIR_COLORS.xterm.
But reinstalling the old much smaller shellscript colorls.sh works fine
with /etc/DIR_COLORS.xterm:
- ----- 8< -----
# color-ls initialization
alias ll='ls -l' 2>/dev/null
alias l.='ls -d .*' 2>/dev/null
COLORS=/etc/DIR_COLORS
[ -e "/etc/DIR_COLORS.$TERM" ] && COLORS="/etc/DIR_COLORS.$TERM"
[ -e "$HOME/.dircolors" ] && COLORS="$HOME/.dircolors"
[ -e "$HOME/.dircolors.$TERM" ] && COLORS="$HOME/.dircolors.$TERM"
[ -e "$HOME/.dir_colors" ] && COLORS="$HOME/.dir_colors"
[ -e "$HOME/.dir_colors.$TERM" ] && COLORS="$HOME/.dir_colors.$TERM"
[ -e "$COLORS" ] || return
eval `dircolors --sh "$COLORS"`
[ -z "$LS_COLORS" ] && return
if ! egrep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null ; then
alias ll='ls -l --color=tty' 2>/dev/null
alias l.='ls -d .* --color=tty' 2>/dev/null
alias ls='ls --color=tty' 2>/dev/null
fi
- ----- 8< -----
- -cu at the bitstream, Dr. Jürgen Kubiak
- --
To verify signature get the Public Key at
http://www.tfh-berlin.de/~kubiak/kubiak_at_tfh-berlin.de.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHz8AcjNKDU5n5PCARAus4AKC6H7EXqh58zj+38aD4lFolexHTzACePnvZ
SRIN5oUHBFtVEpH/BWbF9FA=
=VqP5
-----END PGP SIGNATURE-----
- New colorls.sh doesn't work with DIR_COLORS.xterm,
Dr. J. Kubiak <=