Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 13:34:04 -0700 (PDT)
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:  <199908240628.XAA04909@gilliam.users.flyingcroc.net>

next 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



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?199908240628.XAA04909>