[plug] .bashrc problem
Mark Bailey
mbailey at iinet.net.au
Mon Jul 16 12:07:14 WST 2001
thanx Matt.
I'll check it out.
Mark.
-----Original Message-----
From: Matt Kemner [mailto:zombie at wasp.net.au]
Sent: Monday, 16 July 2001 12:03
To: plug at plug.linux.org.au
Subject: Re: [plug] .bashrc problem
On Mon, 16 Jul 2001, Mark Bailey wrote:
> When I log in at a console on the box itself or
> remotely using putty and type alias it returns
> nothing. Yet if I type alias in a terminal window
> while in Gnome I get the expected list of aliases
> displayed.
.bashrc is only read in when bash is run as a "non-login shell"
For login shells, it reads .bash_profile instead.
An easy fix is to put all your aliases in .bashrc (as you have done)
and then add "source ~/.bashrc" to the top of your .bash_profile
(you can even replace "source" with a single ".")
See the bash manpage for more info on login shells et al.
- Matt
More information about the plug
mailing list