Pretty prompt

Dwight D. Mckay mckay at mace.cc.purdue.edu
Sat Jun 15 01:53:54 AEST 1991


In article <1991Jun13.163726.10604 at umiami.ir.miami.edu>, rfrost at umiami.ir.miami.edu writes:
|> How do I get a prompt which will always show the current directory.
|> For example:
|> 
|>      /usr/rfrost>

Under csh you could put the following in your .cshrc:

alias cd cd \!$ \; set prompt=\"\`echo \$cwd \| sed \'s\?${home}\?\~\?\'\`\>\ \"

This puts your current path in your prompt, substitution "~" for your home directory whenever you type "cd".

--ddm



More information about the Comp.unix.ultrix mailing list