From owner-freebsd-questions@FreeBSD.ORG Mon Jan 29 23:19:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8427516A404 for ; Mon, 29 Jan 2007 23:19:41 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4A2FA13C442 for ; Mon, 29 Jan 2007 23:19:41 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l0TNJeU9068377 for freebsd-questions@freebsd.org; Mon, 29 Jan 2007 17:19:40 -0600 (CST) (envelope-from dan) Date: Mon, 29 Jan 2007 17:19:40 -0600 From: Dan Nelson To: freebsd-questions@freebsd.org Message-ID: <20070129231940.GD78513@dan.emsphone.com> References: <20070129223730.GA7986@parts-unknown.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070129223730.GA7986@parts-unknown.org> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: stupid scripting question: zsh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 23:19:41 -0000 In the last episode (Jan 29), David Benfell said: > I've been upgrading my FreeBSD system into a fully-fledged desktop > system. > > zsh as installed (from the port) seems only to recognize the > /etc/zshenv startup file. And I needed an stty command to get proper > backspace/delete behavior. Because only the /etc/zshenv file seemed > to be recognized, I had to put the stty command in it. I'd start by figuring out why the other zsh startup scripts aren't being read. I install zsh from ports on all my systems and haven't seen this. Are you running zsh -f, or have you unset the RCS shell option from within zshenv? Either will prevent the other rc scripts from being loaded. If you run "truss -f -o log zsh", do you see it try to load zshrc? Anyway, here's how to emulate zprofile, zshrc, and zlogin from within zshenv (untested). Stick this at the bottom of your zshenv: if [[ -o rcs && -o login ]] ; then # code that would be better off in zprofile fi if [[ -o rcs && -o interactive ]] ; then # code that would be better off in zshrc fi if [[ -o rcs && -o login ]] ; then # code that would be better off in zlogin fi -- Dan Nelson dnelson@allantgroup.com