Matthew Rosewarne on 13 Jul 2008 00:21:06 -0700


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

Re: [PLUG] .bashrc or .profile


On Sunday 13 July 2008, Mag Gam wrote:
> So what is it? .profile or .bashrc ?:-)

The difference is about login and non-login shells.  While it does depend 
largely on the distribution, you're likely to find that .profile is used for a 
login shell, whereas .bashrc is used for a non-login shell (like when you run 
xterm).  Usually though, .bashrc is also sourced by .profile.  This means that 
you'll want to do things like setting LANG or PATH in .profile, and things 
like defining aliases in .bashrc.

Of course, .bashrc does very little if you use fish!

%!PS: fish is outstanding.

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug