From owner-freebsd-questions Fri Dec 3 3:30:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.phys.univ.kiev.ua (hq.ups.kiev.ua [193.125.78.249]) by hub.freebsd.org (Postfix) with ESMTP id C794114F1F for ; Fri, 3 Dec 1999 03:30:53 -0800 (PST) (envelope-from usov@hq.ups.kiev.ua) Received: from hq.ups.kiev.ua (class2.phys.univ.kiev.ua [194.44.151.78]) by mail.phys.univ.kiev.ua (8.9.1/8.9.1) with ESMTP id NAA12626; Fri, 3 Dec 1999 13:38:24 +0200 (EET) Message-ID: <3846AAC9.82F3D981@hq.ups.kiev.ua> Date: Thu, 02 Dec 1999 19:22:17 +0200 From: Usov Alexander X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Jonathon McKitrick Cc: Phil Homewood , Alfred Perlstein , freebsd-questions@FreeBSD.ORG Subject: Re: root shell/toor shell References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try if [ -x /usr/local/bin/bash] ; then exec /usr/local/bin/bash -login ; fi > >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message