BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] What the use of .bashrc
- Subject: [Discuss] What the use of .bashrc
- From: chris at tylers.info (Chris Tyler)
- Date: Tue, 30 Oct 2012 10:31:52 -0400
- In-reply-to: <2A3E80A1-303B-43C2-A773-F3AE429A720B@mac.com>
- References: <2A3E80A1-303B-43C2-A773-F3AE429A720B@mac.com>
On Tue, 2012-10-30 at 07:50 -0400, Glenn Hoffman wrote: > I'm teaching an Introduction to Linux/Unix class at UMass/Boston. I've > just told the class about the different type of shells (login, > interactive non-login in, non-interactive) and the startup files for > each. I've never been able to give a class a good reason for the > existence of .bashrc, since I have never used it myself. What's the > reason for a separate startup file for a non-login interactive shell? > > Glenn .bashrc is useful for non-inheritable configuration. Environment variables are inheritable so they're usually placed in .bash_profile; but aliases are not inheritable, so they must be in .bashrc if you want them to be available in each shell you start. -Chris
- Follow-Ups:
- [Discuss] What the use of .bashrc
- From: gaf at blu.org (Jerry Feldman)
- [Discuss] What the use of .bashrc
- References:
- [Discuss] What the use of .bashrc
- From: glennhoffman at mac.com (Glenn Hoffman)
- [Discuss] What the use of .bashrc
- Prev by Date: [Discuss] What the use of .bashrc
- Next by Date: [Discuss] What the use of .bashrc
- Previous by thread: [Discuss] What the use of .bashrc
- Next by thread: [Discuss] What the use of .bashrc
- Index(es):