Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 22:28:28 -0500
From:      Julian Peterson <weaver@earthcorp.com>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: tcsh [TAB] ; man someth-[TAB]? [julian]
Message-ID:  <200204182228.28530.weaver@earthcorp.com>
In-Reply-To: <20020418222431.H96175-100000@earl-grey.cloud9.net>
References:  <20020418222431.H96175-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Apr 2002 9:29 pm, Peter Leftwich wrote:
> On Thu, 18 Apr 2002, Julian Peterson wrote:
> > On Thu, 18 Apr 2002 8:02 pm, Peter Leftwich wrote:
> > > Is it possible under tcsh (or any shell) to configure the "man"
> > > command line command so that the user can type: prompt$ man
> > > shutd[TAB]
> > > And have the shell display commands either in ones ${PATH} statement
> > > or that have manpages on the system?  Shweetniss.
> >
> > Yes. add to your .tcshrc file: complete man 'p/*/c/'
> > It's documented in the tcsh(1) man page FYI.
> > Regards, Julian Peterson.
>
> *swoon*  *falls in LOVE all over again with tcsh*  Thanks for the tip!
>

Yeah, I'm fond of it.  Here's all of the other completions I use, in case 
anyone finds them useful.

complete latex 'n/*/f:*.tex/'
complete latex2html 'n/*/f:*.tex/'
complete lyx 'n/*/f:*.lyx/'
complete dvips 'n/*/f:*.dvi/'
complete xdvi 'n/*/f:*.dvi/'
complete ghostview 'n/*/f:*.{ps,eps,pdf}/'
complete gv 'n/*/f:*.{ps,eps,pdf}/'
complete gunzip 'n/*/f:*.{gz,tgz}/'
complete finger 'p/1/u/'
complete kill  'p/*/`ps  |  awk  \{print\$1\} | grep -v PID`/'
complete killall  'p/*/`ps  |  awk  \{print\$5\}| grep -v COMMAND`/'
complete cd 'p/1/d/'
complete alias 'p/1/a/'
complete man 'p/*/c/'
complete set 'p/1/s/'
complete setenv 'p/1/e/'
complete javac 'n/*/f:*.java/'
complete javadoc 'n/*/f:*.java/'
complete java 'n/*/`ls *.class | awk -F. \{NF--\;OFS=\".\"\;print\}`/'
complete appletviewer 'n/*/f:*.html/'
complete rlog 'n/*/`ls RCS .`/'
complete which 'n/*/c/'

> > Metermaids eat their young.
>
> Oh come on now, they aren't all that bad (I didn't say anything about
> some, though).  They're just doing the job they are paid to do.  By the
> way, to be politically correct, you ought to say "Meter Attendants," just
> as firemen are really firefighters and the mailman is really a
> letter-carrier.

I lay the blame fully at the feet of "fortune".  Sorry if I offended.
...and I've always called the Mailman the Postie.


Julian.

-- 
People are beginning to notice you.  Try dressing before you leave the 
house.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204182228.28530.weaver>