RE: Bash & .bashrc
On 07-Mar-2001 Colin Cashman wrote:
> I have .bashrc set up to support color ls, but .bashrc isn't called when I
> log in.
>
> If I subsequently start a new shell, however, or 'source .bashrc' then the
> file is read and processed.
>
> What's the best way to handle this so it's done automagically upon logging
> in? Just throw "source .bashrc" onto the end of the
> .bash_profile file?
Why don't you just put it in your ~/.bash_profile? I have this alias in mine:
ls='ls --color=auto -F -b -T 0 -N --show-control-chars'
(note that some of the options in that ls are just there to make it handle
accents more properly)
--
Carlos Laviola - ICQ 55799523
pub 1024D/3516D372 2000-06-05 Carlos Laviola <claviola@ajato.com.br>
Key fingerprint = 3BE1 6591 C78C 2AA4 31DD AEEF 6406 0227 3516 D372
Reply to: