> How do you make it so you get color when you type `dir'like in slackware
> instead of having totype ls --color..

   Here's a chunk of what I do in my ~/.bashrc and ~/.bash_profile:

PS1="\t   \d\n\u@\H\n[\w] \\$ "
PAGER=/usr/bin/less
LS_COLORS='no=00:fi=00:di=01;35:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:
cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.rar=01;31:
*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:
*.gz=01;31:*.deb=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:
*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;37:*.avi=01;37:
*.gl=01;37:*.dl=01;37:'
export PATH PS1 LS_COLORS EDITOR PAGER TERM
alias ls="ls --color=auto -p"
alias dir="ls -al"

   This should work fine with any recent bash version.  Just add it to the
above-mentioned files, log out, and then log back in.  Of course, the
LS_COLORS line should all be on one long line.  Feel free to change the colors
and/or extensions as you wish, just keep the same format.  You can use "man"
to fill you in on the switches to see what I'm doing there.  Have fun!

-- 
 Regards,  | Debian GNU/Linux - http://www.debian.org - More software than
 .         | *any* distribution, rock solid reliability, quality control,
 Randy     | seamless upgrades via ftp or CD-ROM, strict filesystem layout
           | and adherence to standards, and militantly 100% FREE Linux!

Reply via email to