From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id VAA16020 for ; Sun, 20 Oct 1996 21:33:49 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA08718; Sun, 20 Oct 1996 07:32:14 -0400 (EDT) Resent-Date: Sun, 20 Oct 1996 07:22:26 -0400 (EDT) From: Zefram Message-Id: <16531.199610201109@stone.dcs.warwick.ac.uk> Subject: Re: Zsh startup files To: nmj3e@virginia.edu (Nate Johnston) Date: Sun, 20 Oct 1996 12:09:14 +0100 (BST) Cc: zsh-users@math.gatech.edu In-Reply-To: from "Nate Johnston" at Oct 19, 96 07:04:04 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8297.32 X-US-Congress: Moronic fuckers MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"yveTP1.0.G42.ojWQo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/449 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >Is there any real difference in the function of .zprofile, .zshrc, etc? Yes. .zprofile and .zlogin are used only by login shells, .zshenv is sourced by all shells, and .zshrc is used only by interactive shells. Roughly speaking, .zshenv should set up aliases, environment variables and emulation-relevant options; .zshrc should do compctls and other options; and .z(profile|login) should do tty settings, motd display and so on. >* How would I program a prompting mechanism, i.e. put up a prompt and wait >for input that would be put into an env var in a script? The "read" >documentation is unclear and I can't figure it out. read 'foo?prompt: ' -zefram