From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19564 invoked from network); 8 Dec 1997 12:27:10 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 Dec 1997 12:27:10 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id HAA08550; Mon, 8 Dec 1997 07:14:21 -0500 (EST) Resent-Date: Mon, 8 Dec 1997 07:10:27 -0500 (EST) From: Andrew Main Message-Id: <199712081211.MAA31918@taos.demon.co.uk> Subject: Re: help with understanding diffs in startup files To: luomat+zsh+users@luomat.peak.org (Timothy J Luoma) Date: Mon, 8 Dec 1997 12:11:02 +0000 (GMT) Cc: zefram@tao.co.uk, zsh-users@math.gatech.edu In-Reply-To: <199712081124.GAA02299@luomat.peak.org> from "Timothy J Luoma" at Dec 8, 97 06:24:17 am X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"tGXsf2.0.d22.oE-Yq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1188 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Timothy J Luoma wrote: >I've always just used one init file. Perhaps this would be a good time to >learn what should go in what file. Approximately speaking... >Where should variables go? >functions? .zshenv >aliases? >bindkeys? .zshrc Actually, the division isn't that simple. .zshenv should set up your normal shell environment, including many options, most functions and most variables. .zshrc should set up your interactive shell environment, including many options, all bindkeys and compctls, aliases, and functions and variables that are only used interactively (such as compctl functions and $HISTCHARS). .zprofile (or .zlogin if you prefer) should contain commands to run when you log in, and should not affect the environment at all. -zefram