From owner-freebsd-questions Wed Aug 18 13:27:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 1685415A1A for ; Wed, 18 Aug 1999 13:27:09 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from lithium.scientia.demon.co.uk ([192.168.0.3] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.024 #3) id 11H7cx-000Bpw-00; Wed, 18 Aug 1999 16:27:47 +0100 Received: (from ben) by lithium.scientia.demon.co.uk (Exim 3.024 #3) id 11H7cw-0001kj-00; Wed, 18 Aug 1999 16:27:46 +0100 Date: Wed, 18 Aug 1999 16:27:46 +0100 From: Ben Smithurst To: "Bill A. K." Cc: FreeBSD Questions Subject: Re: roots shell Message-ID: <19990818162745.A6699@lithium.scientia.demon.co.uk> References: <002b01bee97f$2a3fdf60$01010101@bopper> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <002b01bee97f$2a3fdf60$01010101@bopper> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bill A. K. wrote: > is there any way to change root's default shell from csh to bash. i'm doing > a lot of work on my system and i'm sick of having to start bash at every > shell i open. any help would be greatly appreciated. And why are you doing a lot of work as root? I just log in under my normal account, which uses zsh, and use `su -m' when I need root, which keeps me under zsh when working as root, even though root's shell is /bin/sh. I think this is the best way of doing it, personally. > i've already changed the path to my shell in both /etc/passwd and > /etc/master.passwd but it didn't change it. Use `vipw'. > and i would also like to know how to customize my bash prompt with my > current directory for example. Try something like PS1='\u@\h:\w\$ '. I've switched to zsh now though, but I think that is what I used in bash. Read bash's manpage, it explains all. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message