[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Directory colors in console / xterm



On Sun, Feb 13, 2000 at 02:03:01AM +0100, webmaster@euronetwork.com wrote:
> Hi,
> 
> it's me again. There are still a lot of questions but I hope someone
> will help me again. 
> 
> - Is there an easy way to define directory colors for the use in any
> virtual console? For example every executable script should be listed in
> red, any directory in blue, and so on....

Put this in your ~/.bashrc

export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls -F $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

Then source it in your .xsession

# Source .bashrc
if [ -f $HOME/.bashrc]; then
	source $HOME/.bashrc
fi

	
-- 
+----------------------------------------------------+
| Eric G. Miller                        egm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc  |
+----------------------------------------------------+


Reply to: