Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 1999 01:13:18 -0300
From:      "J. M. Albores" <jote@bigfoot.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Newbie: The "PS1" environment variable & others.
Message-ID:  <37896B5E.AD390164@bigfoot.com>
References:  <37883A86.53F55E65@bigfoot.com> <19990711170901.S21403@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey wrote:
> 
> On Sunday, 11 July 1999 at  3:32:38 -0300, J. M. Albores wrote:
> > [...]
> > I'd like to setup what in Linux is "$PS1", so the shell prompt may look
> >       [userID@host /actual/path ]#
> [...]
> I think your real question is: how do I get bash as my shell?  There
> are three things you need to do:
> 
> 1.  Install the port...
> [...]
> 2.  Copy your Linux .bashrc and any other...
> [...]
> 
> 3.  Change your shell: run the chsh program...
> [...]

First of all, thanks for you answer, Greg.
Well... In fact I had found the "chsh" command browsing man pages and I
was using /bin/sh, as I didn't find bash-VER.tgz in my CD-ROM even I
didn't do an intensive search, and I am not used to csh.
But -if it's possible in this list- I would like to ask other question:
Does C shell have any advantage over bash or sh? I was surprised that
(after a short experience with Linux) csh was the default shell for root
after FreeBSD installation!
Which is convenient for which purpose?

> [...]
> > And, BTW three other questions:
> >
> > 1. I see two "profile", one in "/" as dot file, and one in "/etc" (???).
> > Is this the rule or I did something wrong?
> 
> Well, you should have /etc/profile with system-wide defaults, and
> .profile in each user's home directory.  That's the rule, and it's the
> same with Linux.  You shouldn't have anything in /, since no user
> should have / as a home directory.
> [...]

In my machine, every user has his own .profile at ~/ by default.
If I log as root, my /.profile is the same of /root/.profile. If I edit
one file, the other changes too. And /.profile is NOT a symlink to
/root/.profile. (?!) It has just "common" file permissions. I don't
understand this.

Thanks, Greg.

--
J M Albores



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?37896B5E.AD390164>