From owner-freebsd-questions@FreeBSD.ORG Tue Jan 30 01:12:48 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 3AFE116A400 for ; Tue, 30 Jan 2007 01:12:48 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: from earth.parts-unknown.org (earth.parts-unknown.org [66.93.170.243]) by mx1.freebsd.org (Postfix) with SMTP id 14C9413C4A7 for ; Tue, 30 Jan 2007 01:12:48 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: (qmail 64370 invoked by uid 501); 30 Jan 2007 01:12:47 -0000 Date: Mon, 29 Jan 2007 17:12:46 -0800 From: David Benfell To: Dan Nelson Message-ID: <20070130011246.GB52136@parts-unknown.org> Mail-Followup-To: Dan Nelson , freebsd-questions@freebsd.org References: <20070129223730.GA7986@parts-unknown.org> <20070129231940.GD78513@dan.emsphone.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <20070129231940.GD78513@dan.emsphone.com> X-gnupg-public-key: http://www.parts-unknown.org/gnupg/export-0DD1D1E3 X-stardate: [-29]7065.13 X-moon: The Moon is Waxing Gibbous (90% of Full) User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org 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: Tue, 30 Jan 2007 01:12:48 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 29 Jan 2007 17:19:40 -0600, Dan Nelson wrote: > In the last episode (Jan 29), David Benfell said: > > I've been upgrading my FreeBSD system into a fully-fledged desktop > > system. > >=20 > > 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. >=20 > 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? >=20 Okay, I figured out how to run truss (yes, I had the PROCFS and PSEUDOFS options in my kernel). Yes, it tries to access /etc/zshrc. I was trying zlogin, which I had seen on a Linux system. So I've made *this* change, and everything now works. Thanks! > Anyway, here's how to emulate zprofile, zshrc, and zlogin from within > zshenv (untested). Stick this at the bottom of your zshenv: >=20 > 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 >=20 Thanks! --=20 David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/ NOTE: I sign all messages with GnuPG (0DD1D1E3). --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFvpuOUd+dMw3R0eMRAjliAJ0X4zyQFkezzMV4vKmJg8M9OXcirwCeL2f8 fB7HL8d2X+9IWxzSS4uAkxk= =GOQf -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--