Path: utzoo!attcan!uunet!husc6!necntc!ncoast!allbery From: smith@cos.com (Steve Smith) Newsgroups: comp.sources.misc Subject: v03i054: Another csh prompt generator Message-ID: <2671@cos.com> Date: 15 Jun 88 22:01:15 GMT Sender: allbery@ncoast.UUCP Reply-To: smith@cos.com (Steve Smith) Organization: Corporation for Open Systems, McLean, VA Lines: 22 Approved: allbery@ncoast.UUCP comp.sources.misc: Volume 3, Issue 54 Submitted-By: "Steve Smith" Archive-Name: yacshppt [Re: the Organization: line above -- say who? --The "strain_home" alias has a small problem: what happens if user "smith" cd's to /u/smith2? I usually use a C version which I call "cpwd". ++bsa] alias strain_home 'sed "s?$home?~?"' alias cd 'cd \!*;set prompt="{`(pwd|strain_home)`} "' alias pushd 'pushd \!*;set prompt="{`(pwd|strain_home)`} "' alias popd 'popd \!*;set prompt="{`(pwd|strain_home)`} "' set prompt="{`pwd|strain_home`} " I don't need to see the path to my home directory. -- -- Steve (smith@cos.com) ({uunet sundc decuac hqda-ai hadron}!cos!smith) "Truth is stranger than fiction because fiction has to make sense."