From owner-freebsd-questions Thu Dec 2 11:12:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id E9F3914A1B for ; Thu, 2 Dec 1999 11:12:35 -0800 (PST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 1.92 #3) id 11tbeR-000Ax6-00; Thu, 2 Dec 1999 19:12:23 +0000 Received: from localhost (jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with SMTP id TAA94619; Thu, 2 Dec 1999 19:12:21 GMT (envelope-from jcm@dogma.freebsd-uk.eu.org) Date: Thu, 2 Dec 1999 19:12:21 +0000 (GMT) From: Jonathon McKitrick To: Phil Homewood Cc: Alfred Perlstein , freebsd-questions@FreeBSD.ORG Subject: Re: root shell/toor shell In-Reply-To: <19991030115511.A10041@mincom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Alfred Perlstein wrote: >> In re changing root's/toor's shell, why not just put som,e code in >> your .profile/.cshrc that conditionally automagically exec's zsh/bash >> if it's available? :) >> >> if [ -x /usr/local/bin/zsh ] ; then >> exec /usr/local/bin/zsh ; >> fi I would like to use this for my 'toor' user, but how do i preserve all my aliases and shell variables? I see lots of stuff going on in .cshrc and i put some extra stuff in .profile, but when i run zsh or bash after my prompt comes up, all that info is lost in the new shell. Is there a way to preserve it? -jm ------------------ Bayliss: "And that's another thing... you never say 'please' and 'thank you.'" Pendleton: "Please stop being an idiot. Thank you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message