Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!mit-eddie!bbn!uwmcsd1!ig!agate!labrea!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!botter!ark.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: A blank line before the unix prompt? Keywords: prompt Message-ID: <1359@ark.cs.vu.nl> Date: 10 Aug 88 19:39:53 GMT References: <3809@okstate.UUCP> <6591@bloom-beacon.MIT.EDU> <1236@ficc.UUCP> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 26 In article <1236@ficc.UUCP> spenser@ficc.UUCP (spenser aden) writes: \This is interesting, and I would like to do something similar on my XENIX 386 \machine, but I've got a problem. I'd like to display the current directory \on the firrst line, and the csh history counter on the second line at the \prompt. Something like : \ \/usr2/spenser/bin \(15) _ \ \In order to do this, I have to alias 'cd'. I've tried this (and a few \derivations of) in my .cshrc : \ \alias cd 'cd \!* ; set prompt="[=5h"`pwd`"[=5l \ \(\!) " ' # set prompt string Try: alias cd 'cd \!*; set prompt="[=5h`pwd`[=5l\\ (\\!) "' Notice: the newline and the second ! have to be escaped twice, once on setting the alias and once on executing it. BTW, it's a nice prompt indeed. -- If you enjoyed the recent heat wave, |Maarten Litmaath @ Free U Amsterdam: you'll certainly like the ozone gap...|maart@cs.vu.nl, mcvax!botter!maart