From owner-freebsd-questions Sat May 29 6:34: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 607D014DEB for ; Sat, 29 May 1999 06:33:59 -0700 (PDT) (envelope-from naddy@mips.rhein-neckar.de) Received: from mips.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id PAA05886 for freebsd-questions@freebsd.org; Sat, 29 May 1999 15:33:58 +0200 (CEST) (envelope-from naddy@mips.rhein-neckar.de) Received: by mips.rhein-neckar.de id m10nhRz-000WyZC (Debian Smail-3.2.0.101 1997-Dec-17 #2); Sat, 29 May 1999 13:38:51 +0200 (CEST) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: why we don't mess with root's shell: Re: Need help with Root shell? Date: 29 May 1999 13:38:48 +0200 Message-ID: <7iojk8$t21$1@mips.rhein-neckar.de> References: <7imjo4$kef$1@mips.rhein-neckar.de> To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Annelise Anderson wrote: > Suppose FreeBSD were to provide as a default shell for root and > for users something with a few more features than sh and csh-- > filename completion, Actually, csh has a rudimentary filename completion facility. > command recall and editing, FreeBSD's sh has this. > a prompt easy to configure to tell you who you are and where you are. The following works quite well in our sh. I'll reserve judgment whether it is easy to configure. # Prompt prompt=${USER}@$(hostname -s) cd() { command cd "$@" case $PWD in "${HOME}"*) PS1="${prompt}[~${PWD#"${HOME}"}] " ;; *) PS1="${prompt}[${PWD}] " ;; esac } cd $PWD # initialize prompt -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de carpe librum: books 'n' reviews To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message