There may be a .bashrc script in your home directory. If not, check a .profile, or .bash_login there also.
Usually, ls is aliased in the /etc/bash.bashrc script, and set to the variable $LS_OPTIONS, so the setting of LS_OPTIONS is probably what you are looking for.
If you don't have a .bashrc in your home directory, you could make one with the line:
LC_OPTIONS='-N --color=tty -T 0' which is what mine is set to.
If you want to make the change global for all users, you could use /etc/profile.local.
____
I reread part of the book "Learning the Bash Shell" by Cameron Newham.
The name of a users bash login script is ~/.bash_profile. If this file doesn't exist, bash looks for ~/.bash_login. If this doesn't exist, it looks for ~/.profile.
The ~/.profile file is also read by some other shells, so what is often done is that the ~/.bash_profile script will contain the line 'source .bash_profile' to execute commands common to bash, and bourne shells.
Last edited by jschiwal; 01-20-2005 at 04:41 PM.
|