From owner-freebsd-questions Sat Aug 14 7:36:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from juno.dsj.net (sylvester.dsj.net [208.148.155.228]) by hub.freebsd.org (Postfix) with ESMTP id 30DAE14A0B for ; Sat, 14 Aug 1999 07:36:07 -0700 (PDT) (envelope-from dsj@juno.dsj.net) Received: (from dsj@localhost) by juno.dsj.net (8.9.2/8.9.2) id KAA25354; Sat, 14 Aug 1999 10:37:06 -0400 (EDT) (envelope-from dsj) Date: Sat, 14 Aug 1999 10:37:05 -0400 From: "David S. Jackson" To: Kenneth Legg Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Message-ID: <19990814103705.C20961@juno.dsj.net> Reply-To: "David S. Jackson" References: <99081410242902.00286@myname.my.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <99081410242902.00286@myname.my.domain>; from Kenneth Legg on Sat, Aug 14, 1999 at 10:23:26AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So then Kenneth Legg (sce04020@mail.wvnet.edu) said . . . > How do you change the prompt to show the current directory? For bash/sh: export PS1="[\u@\h \w]$ " for csh, in your .cshrc put: alias setprompt 'set prompt = "$cwd % "' setprompt alias cd 'cd \!*;setprompt' alias pushd 'pushd \!*;setprompt' alias popd 'popd \!*;setprompt' Now after sourcing your .cshrc, execute the new setprompt command. As you can see, it's *much* easier to use bash, although tcsh is much easier than csh. Good luck! -- David S. Jackson http://www.dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To give your sheep or cow a large, spacious meadow is the way to control him. --Shunryu Suzuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message