Date: Fri, 5 Jul 1996 22:34:33 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: rcutter@ctgusa.com Cc: questions@freebsd.org Subject: Re: Changing prompt Message-ID: <199607052234.WAA03892@jraynard.demon.co.uk> In-Reply-To: <1.5.4.32.19960705154424.008cda38@ctgusa.com> (message from Ryan Cutter on Fri, 05 Jul 1996 11:44:24 -0400)
next in thread | previous in thread | raw e-mail | index | archive | help
> How can I change my prompt in FreeBSD to reflect the current
> directory I'm in?
It depends on which shell you're using - it'll be the C shell if you
haven't changed it. Here's the answer from the comp.unix.questions
FAQ:-
Put this in your .cshrc - customize the prompt variable the
way you want.
alias setprompt 'set prompt="${cwd}% "'
setprompt # to set the initial prompt
alias cd 'chdir \!* && setprompt'
This will give you a prompt that looks like '/home/james% ' when you
log in.
--
James Raynard, Edinburgh, Scotland
james@jraynard.demon.co.uk
http://www.freebsd.org/~jraynard/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607052234.WAA03892>
