Date: Thu, 21 Feb 2002 09:54:23 -0800 From: Benjamin Krueger <benjamin@macguire.net> To: DragonRyder <dragonr@xmission.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Help Message-ID: <20020221095423.C12253@rain.macguire.net> In-Reply-To: <E16dxGZ-0002O9-00@mail.xmission.com>; from dragonr@xmission.com on Thu, Feb 21, 2002 at 10:44:23AM -0700 References: <E16dxGZ-0002O9-00@mail.xmission.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* DragonRyder (dragonr@xmission.com) [020221 09:44]: > I am new to UNIX and FreeBSD. I just started the first month of a > three month course on UNIX Programming. I am enjoying the class and > look forward to learning more about this OS. > > My question is this... > I don't like using pwd to determine where I am everytime I go to use a > command. Is there a way of changing the prompt so I don't have to use > the pwd all the time? > > NOTE: The server that I am using for my class is my own hard drive. We > reformat the drives and install UNIX on a daily bases. Therefore, if I > mess up on the commands and instructions you give me, I can always > install and try again. > > Thank you for your help, > Jef Sullivan Jef, Although you do not mention what shell you are using, I will offer a suggestion for a simple bash prompt that I use. I'm sure others will offer other prompts for other shells. At the prompt, type 'export PS1="\h:\w >" This will result in a prompt similar to the following: dellar:/etc > To make this change permanant, add the line above to your .bashrc in your home directory. Good luck in your class. -- Benjamin Krueger "From the moment I picked up your book until I laid it down, I was convulsed with laughter. Some day I intend reading it." - Groucho Marx ---------------------------------------------------------------- Send mail w/ subject 'send public key' or query for (0x251A4B18) Fingerprint = A642 F299 C1C1 C828 F186 A851 CFF0 7711 251A 4B18 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?20020221095423.C12253>