Date: Fri, 22 Feb 2002 12:01:48 -0500 (EST) From: "jamgill@uu.net" <jamgill@UU.NET> To: DragonRyder <dragonr@xmission.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Help Message-ID: <Pine.GSO.4.20.0202221148410.21661-100000@haiti.corp.us.uu.net> In-Reply-To: <E16dxGZ-0002O9-00@mail.xmission.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, if you use tcsh: set prompt = '[%B%m%b] %B%~%b%# ' I've used FreeBSD for years and just a few weeks ago logged into a friends' relatively recent install and the fortune(6) program gave me an insightful hint for a "nice tcsh prompt". It has become my default prompt everywhere since. HTH --gill p.s. Here are some tips from /usr/share/games/fortune/freebsd-tips % Nice tcsh prompt: set prompt = '%m %# ' -- Giorgos Keramidas <keramida@ceid.upatras.gr> % Nice tcsh prompt: set prompt = '%n@%m%# ' -- Giorgos Keramidas <keramida@ceid.upatras.gr> % Nice tcsh prompt: set prompt = '%n@%m:%~%# ' -- Giorgos Keramidas <keramida@ceid.upatras.gr> % Nice tcsh prompt: set prompt = '%n@%m:%/%# ' -- Giorgos Keramidas <keramida@ceid.upatras.gr> % Nice tcsh prompt: set prompt = '[%B%m%b] %B%~%b%# ' % Simple tcsh prompt: set prompt = '%# ' -- Giorgos Keramidas <keramida@ceid.upatras.gr> % Handy bash(1) prompt: PS1="\u@\h \w \!$ " -- David Scheidt <dscheidt@tumbolia.com> On Thu, 21 Feb 2002, DragonRyder wrote: > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --gill | Tatu Ylonen, SSH 1.2.12 README: "Beware that the most effective | way for someone to decrypt your data may be with a rubber hose." 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?Pine.GSO.4.20.0202221148410.21661-100000>