v03i054: Another csh prompt generator
Steve Smith
smith at cos.com
Thu Jun 16 08:01:15 AEST 1988
comp.sources.misc: Volume 3, Issue 54
Submitted-By: "Steve Smith" <smith at cos.com>
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 at cos.com) ({uunet sundc decuac hqda-ai hadron}!cos!smith)
"Truth is stranger than fiction because fiction has to make sense."
More information about the Comp.sources.misc
mailing list