Date: Thu, 02 Dec 1999 19:22:17 +0200 From: Usov Alexander <usov@hq.ups.kiev.ua> To: Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org> Cc: Phil Homewood <philh@mincom.com>, Alfred Perlstein <bright@wintelcom.net>, freebsd-questions@FreeBSD.ORG Subject: Re: root shell/toor shell Message-ID: <3846AAC9.82F3D981@hq.ups.kiev.ua> References: <Pine.BSF.4.02A.9912021910530.94523-100000@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3846AAC9.82F3D981>
