From owner-freebsd-questions Thu Sep 13 19: 5:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wintermute.at.org (wintermute.at.org [64.69.77.155]) by hub.freebsd.org (Postfix) with ESMTP id 62E3037B407 for ; Thu, 13 Sep 2001 19:05:10 -0700 (PDT) Received: from barney.intergate.ca (bambam [216.232.225.42]) by wintermute.at.org (8.11.3/8.11.3) with ESMTP id f8DJMtv24187 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Thu, 13 Sep 2001 19:22:57 GMT Received: from FRED (fred [192.168.2.1]) by barney.intergate.ca (8.11.3/8.11.3) with ESMTP id f8E2Cku22221; Thu, 13 Sep 2001 19:12:47 -0700 Date: Thu, 13 Sep 2001 19:11:12 -0700 From: Sean Ellis X-Mailer: The Bat! (v1.51) Reply-To: Sean Ellis Organization: yes X-Priority: 3 (Normal) Message-ID: <148334471361.20010913191112@telus.net> To: "Andre` Niel Cameron" Cc: freebsd-questions@freebsd.org Subject: Re: Help with shells please:) In-Reply-To: <002301c13cbd$e6ede380$a50410ac@olmct.net> References: <002301c13cbd$e6ede380$a50410ac@olmct.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Andre`, Thursday, September 13, 2001, 6:38:06 PM, you wrote: > Ok, I have bash set as my default shell. I used : > chsh -s /usr/local/bin/bash > Will this change it for everyone or just me? Type "less /etc/passwd" (w/o quotes); you'll see what each user has in the way of a shell. Alternately type "pw showuser root", (using root as an example). The shell will be the last field; after the colons. > Also, now that I have changed to bash the shell prompt looks like this: > su-2.05# > it used to look like this: > gaia:~# > Notice view 2 shows the server name:) How do I get it to look like option > 2? What will be displayed in your prompt is stored in a variable, PS1, try "echo $PS1". You can set this variable in different places, like, er, your ~/.bashrc file for example. There is a good howto, "Bash-Prompt-HOWTO" in the linux docs that will be mainly relevant. Personally I like to see the pwd displayed. You can get quite carried away if you're so inclined, try "man bash", then type /^PROMPT You'll have to experiment. Look at some examples, and cut and paste a bit to get going, > Regards, > Andre` C. -- Best regards, Sean mailto:sellis@telus.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message