From owner-freebsd-questions Thu Apr 18 20:29:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from VOLTAIRE.stic.net (mail.stic.net [204.57.118.5]) by hub.freebsd.org (Postfix) with ESMTP id CF9A337B416 for ; Thu, 18 Apr 2002 20:28:56 -0700 (PDT) Received: from wallace ([216.198.62.121]) by VOLTAIRE.stic.net (Post.Office MTA v3.5.3 release 223 ID# 0-70040U18500L11000S0V35) with ESMTP id net; Thu, 18 Apr 2002 22:28:55 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Julian Peterson To: Peter Leftwich Subject: Re: tcsh [TAB] ; man someth-[TAB]? [julian] Date: Thu, 18 Apr 2002 22:28:28 -0500 X-Mailer: KMail [version 1.4] Cc: FreeBSD LIST References: <20020418222431.H96175-100000@earl-grey.cloud9.net> In-Reply-To: <20020418222431.H96175-100000@earl-grey.cloud9.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200204182228.28530.weaver@earthcorp.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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