Date: Wed, 18 Aug 1999 16:27:46 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: "Bill A. K." <billieakay@yahoo.com> Cc: FreeBSD Questions <questions@freebsd.org> Subject: Re: roots shell Message-ID: <19990818162745.A6699@lithium.scientia.demon.co.uk> In-Reply-To: <002b01bee97f$2a3fdf60$01010101@bopper> References: <002b01bee97f$2a3fdf60$01010101@bopper>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990818162745.A6699>
