From owner-freebsd-questions Fri Feb 22 9: 2:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cmr1.ash.ops.us.uu.net (cmr1.ash.ops.us.uu.net [198.5.241.39]) by hub.freebsd.org (Postfix) with ESMTP id 7528D37B400 for ; Fri, 22 Feb 2002 09:02:03 -0800 (PST) Received: from csserve0.corp.us.uu.net by cmr1.ash.ops.us.uu.net with ESMTP (peer crosschecked as: csserve0.corp.us.UU.NET [153.39.88.140]) id QQmdii05156; Fri, 22 Feb 2002 17:02:02 GMT Received: from haiti.corp.us.uu.net by csserve0.corp.us.uu.net with ESMTP (peer crosschecked as: localhost [127.0.0.1]) id QQmdii21769; Fri, 22 Feb 2002 12:01:49 -0500 (EST) Received: from localhost (jamgill@localhost) by haiti.corp.us.uu.net (8.10.2+Sun/8.9.3) with ESMTP id g1MH1me21779; Fri, 22 Feb 2002 12:01:48 -0500 (EST) X-Authentication-Warning: haiti.corp.us.uu.net: jamgill owned process doing -bs Date: Fri, 22 Feb 2002 12:01:48 -0500 (EST) From: "jamgill@uu.net" X-Sender: jamgill@haiti.corp.us.uu.net To: DragonRyder Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Help In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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 % Nice tcsh prompt: set prompt = '%n@%m%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%n@%m:%~%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%n@%m:%/%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '[%B%m%b] %B%~%b%# ' % Simple tcsh prompt: set prompt = '%# ' -- Giorgos Keramidas % Handy bash(1) prompt: PS1="\u@\h \w \!$ " -- David Scheidt 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