Date: Sat, 14 Aug 1999 10:37:05 -0400 From: "David S. Jackson" <dsj@dsj.net> To: Kenneth Legg <sce04020@mail.wvnet.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Message-ID: <19990814103705.C20961@juno.dsj.net> In-Reply-To: <99081410242902.00286@myname.my.domain>; from Kenneth Legg on Sat, Aug 14, 1999 at 10:23:26AM -0400 References: <99081410242902.00286@myname.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990814103705.C20961>