Date: Thu, 13 Sep 2001 19:11:12 -0700 From: Sean Ellis <sellis@telus.net> To: "Andre` Niel Cameron" <AndreC@Axxs.net> Cc: freebsd-questions@freebsd.org Subject: Re: Help with shells please:) Message-ID: <148334471361.20010913191112@telus.net> In-Reply-To: <002301c13cbd$e6ede380$a50410ac@olmct.net> References: <002301c13cbd$e6ede380$a50410ac@olmct.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?148334471361.20010913191112>