Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!news.kei.com!world!news.bu.edu!acs2.bu.edu!mi From: mi@bu.edu (Mikhail Teterin) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: DOS Style shell prompt Date: 20 Oct 1995 03:37:20 GMT Organization: Boston University Lines: 21 Message-ID: <4675hg$t7p@news.bu.edu> References: <814126352.7670@kiss.demon.co.uk> NNTP-Posting-Host: acs2.bu.edu X-Newsreader: TIN [version 1.2 PL2] Some time ago (Thu, 19 Oct 1995 18:11:16 GMT) honorable Phil Taylor, residing at phil@zipmail.co.uk wrote: |This is very usefull (unless you have gone very deep in the directory |structure) and saves a pwd every time you do an rm -r * . It helps |just to check where you are. I know people that have accidently done |rm -r * in / because they were logged in as root on an SCO system and |had typed cd on its own just before !!!!! (best thing to do with SCO |anyway 8-). This are my settings (for tcsh, for csh, you'll have to change a bit), if anyone can suggest something better -- please! This is ugly :-) : alias setprompt 'set prompt="%m:${PWD}\(\!\) "' alias cd "chdir \!* && setprompt" alias ppd "popd \!* && setprompt" alias psd "pushd \!* && setprompt" %m stays for machine name (in csh -- run hostname first, then make an alias), ! will make it print the sequentinal number of the command. -- hot-dog apple-pie baseball Chevrolet