Article View: comp.sys.next.misc
Article #881Re: How do I make shell prompt show working directory?
From: Jess Anderson
Date: Wed, 08 Apr 1992 00:53
Date: Wed, 08 Apr 1992 00:53
35 lines
1886 bytes
1886 bytes
In article <1992Apr07.145433.53171@cs.cmu.edu>
cmaeda+@cs.cmu.edu (Christopher Maeda) writes:
>In article <1992Apr7.120605.26841@macc.wisc.edu>
>anderson@macc.wisc.edu (Jess Anderson) writes:
>> alias cd 'cd \!*; doprompt'
>> alias doprompt 'set prompt="[`hostname`:`whoami`]`dirs|sed -e
>>'\''s/ //'\'' -e 's.~..' -e 's./..'`[\\!] "'
>That's disgusting. Why do people think firing up sed with
>line noise for arguments every time you change your working
>directory is elegant? "Many small tools..." "Thousand
>points of light..."
Well, now that you mention it, you *do* sound a little like
George Bush. But I'm a forgiving kind of guy, and I'm using
the shell I'm using, so you be forgiving too and we'll have
our separate ways.
>You also have to alias pushd and popd.
Did that, thought it was obvious. So what?
>-- Chris Maeda, Grad Student and RetroGrouch
Not to worry, it's a sorry state that doesn't last forever
(believe me, I was in college for 15 years!).
--
Jess Anderson <> Madison Academic Computing Center <> University of Wisconsin
Internet: anderson@macc.wisc.edu <-best, UUCP:{}!uwvax!macc.wisc.edu!anderson
NeXTmail w/attachments: anderson@yak.macc.wisc.edu Bitnet: anderson@wiscmacc
Room 3130 <> 1210 West Dayton Street / Madison WI 53706 <> Phone 608/262-5888
Technical Details
Message-ID:
<1992Apr8.005302.3406@macc.wisc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!zazen!andersonReferences:
<basiji.702614445@milton> <1992Apr7.072725.6379@nextdoor.com> <1992Apr7.120605.26841@macc.wisc.edu> <1992Apr07.145433.53171@cs.cmu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!zazen!anderson From: anderson@macc.wisc.edu (Jess Anderson) Subject: Re: How do I make shell prompt show working directory? Message-ID: <1992Apr8.005302.3406@macc.wisc.edu> Sender: news@macc.wisc.edu (USENET News System) Organization: Madison Academic Computing Center, UW-Madison References: <basiji.702614445@milton> <1992Apr7.072725.6379@nextdoor.com> <1992Apr7.120605.26841@macc.wisc.edu> <1992Apr07.145433.53171@cs.cmu.edu> Date: Wed, 8 Apr 92 00:53:02 GMT