Hi,

I don't know it's when, but now when I do '$ ls', it no longer show
colors for special entries (say dirs).

$ which ls
/bin/ls

I'm on a up-to-date 2-qam, with
coreutils:runtime=foresight.rpath....@fl:2-qa/7.2-2-1

Attached /etc/profile.d/coreutils-colorls.sh and my .bashrc.

Thanks,
zhang
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

if [ -f /etc/profile ];then
        source /etc/profile
fi

set -o vi

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias egrep='egrep -n --color'
alias grep='grep -n --color'

export PYTHONSTARTUP=~/.pythonrc

# change prompt color
if [ "$PS1" ]; then
    case $(id -u) in
    0)
        START_COLOR='\[\e[31m\]'
        ;;
    *)
        START_COLOR='\[\e[36m\]'
        ;;
    esac
    END_COLOR='\[\e[0m\]'
    PS1="$START_COLOR$PS1$END_COLOR"
fi
#-----------------------
_______________________________________________
Foresight-devel mailing list
Foresight-devel@lists.rpath.org
http://lists.rpath.org/mailman/listinfo/foresight-devel

Reply via email to