Re: aliases in .profile don't work?
- From: Marius Gedminas <marius@xxxxxx>
- Date: Thu, 9 Dec 2010 01:19:00 +0200
On Wed, Dec 08, 2010 at 02:46:25PM -0800, Knute Johnson wrote:
Anybody know why putting an alias in ~/.profile doesn't work but putting
it in ~/.bash_aliases does?
~/.profile is sourced for login sessions only (both ssh logins and gdm
logins, the latter thanks to Ubuntu's /etc/gdm/Xsession). Aliases
aren't exported via the environment, so any new shell sessions -- such
as those you get by opening a terminal window -- do not inherit them.
~/.bash_aliases is sourced for every new shell session.
~/.bash_profile or ~/.bash_login do NOT
exist. Adding a change to the PATH works just fine in ~/.profile.
PATH is usually exported via the environment, so setting it in ~/.profile
is sufficient.
Marius Gedminas
--
Did you hear that the author of _Nitpicking for Dummies_ has just
received it back from the publisher with the 182nd set of editorial
markups?
-- Bill Snyder
Attachment:
signature.asc
Description: Digital signature
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: aliases in .profile don't work?
- From: MR ZenWiz
- Re: aliases in .profile don't work?
- From: Knute Johnson
- Re: aliases in .profile don't work?
- References:
- aliases in .profile don't work?
- From: Knute Johnson
- aliases in .profile don't work?
- Prev by Date: Re: firefox broken
- Next by Date: keyboard mapping problem
- Previous by thread: aliases in .profile don't work?
- Next by thread: Re: aliases in .profile don't work?
- Index(es):
Relevant Pages
|