Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: bash startup scripts
- To: tlug@example.com, turnbull@example.com
- Subject: Re: tlug: bash startup scripts
- From: Klaus Kudielka <kudielka@example.com>
- Date: Fri, 13 Nov 1998 13:19:37 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: Text/Plain; charset=us-ascii
- In-Reply-To: Your message of "Fri, 13 Nov 1998 12:43:58 +0900 (JST)"<13899.43774.353833.754990@example.com>
- References: <13899.43774.353833.754990@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Well, I'm a zsh user. zsh has 4 levels of startup files: first /etc/zshenv ~/.zshenv read by all kinds of shells /etc/zprofile ~/.zprofile read by login shells /etc/zshrc ~/.zshrc read by interactive shells last /etc/zlogin ~/.zlogin read by login shells I use only zprofile and zshrc. In zprofile I set all environment variables I'd like to have. In zshrc I set the rest, like shell options and aliases. The reason is that the environment variables are automatically copied at process creation - there is no need to set them again when starting a new shell (i.e. non-login interactive shell in an xterm). There's only one exception - the prompt ($PS1 etc) is re-set even by non-login shells. I put the corresponding statement in zshrc. One possibly should set a basic PATH in zshenv, so that scripts using rsh do work right. zshenv should contain the basic framework for non-interactive shells. Oh yes, and the basic rule "/etc/* for all users, ~/.* for me" also applies. bash has a similar setup, although not as clear as zsh. For some weird reason it does not read /etc/bashrc. The Red Hat guys solved this problem by creating a ~/.bashrc for every user, sourcing /etc/bashrc. -Klaus ---------------------------------------------------------------- Next Nomikai: 20 November, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next Technical Meeting: 12 December, 12:30 HSBC Securities Office ---------------------------------------------------------------- more info: http://tlug.linux.or.jp Sponsors: PHT, HSBC Securities
- References:
- tlug: bash startup scripts
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: Porting xsokoban to win32
- Next by Date: Re: tlug: Porting xsokoban to win32
- Prev by thread: tlug: bash startup scripts
- Next by thread: Re: tlug: bash startup scripts
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links