v03i052: My favorite csh prompt generator

Joseph A. Porkka jap at syssun.cl.msu.edu
Tue Jun 14 10:47:22 AEST 1988


Reply-To: jap at syssun.cl.msu.edu (Joseph A. Porkka)

comp.sources.misc: Volume 3, Issue 52
Submitted-By: "Joseph A. Porkka" <jap at syssun.cl.msu.edu>
Archive-Name: ppt

Subject: My favorite csh prompt generator

Install this thing into you .cshrc file and then
everytime you cd the prompt will change to reflect your current directory


alias cd 'cd \!* && prompt'
alias prompt 'if ($?prompt) set prompt="! ${host}:${user} ${cwd}: "'
alias pushd 'pushd \!* && prompt'



More information about the Comp.sources.misc mailing list