From owner-freebsd-questions Sun Jul 11 22:37:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail-srv.MR.COM.AR (mail-srv.mr.com.ar [200.41.14.210]) by hub.freebsd.org (Postfix) with ESMTP id 98D3C14FA1 for ; Sun, 11 Jul 1999 22:36:55 -0700 (PDT) (envelope-from jote@bigfoot.com) Received: from bigfoot.com ([200.41.15.76]) by mail-srv.MR.COM.AR (Post.Office MTA v3.5.2 release 221 ID# 0-59784U17500L14800S0V35) with ESMTP id AR for ; Mon, 12 Jul 1999 02:37:07 -0300 Message-ID: <37896B5E.AD390164@bigfoot.com> Date: Mon, 12 Jul 1999 01:13:18 -0300 From: "J. M. Albores" X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Newbie: The "PS1" environment variable & others. References: <37883A86.53F55E65@bigfoot.com> <19990711170901.S21403@freebie.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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