home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!comp.vuw.ac.nz!Ray.NIckson
- From: Ray.NIckson@comp.vuw.ac.nz (Ray Nickson)
- Subject: Re: file name completion and # of tabs it takes
- Message-ID: <BuDpww.HrJ@comp.vuw.ac.nz>
- Sender: gnulists@ai.mit.edu
- Organization: Victoria University of Wellington, Wellington, New Zealand
- References: Ray.NIckson@comp.vuw.ac.nz (Ray Nickson)
- Distribution: gnu
- Date: Thu, 10 Sep 1992 20:22:07 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 21
-
- In article <9209091316.AA17858@fergie.ATL.GE.COM> gthaker@fergie.ATl.ge.COM (Gautam H Thaker) writes:
-
- Aslo, tcsh has context sensitive completion, so that if one does
- printenv DIS<tab> it completes from the list of env. variables. Neat.
- Can bash have this too?
-
- Perhaps even more interesting: tcsh's context sensitive completion is
- user configurable. Very neat indeed. What follows are some extracts
- from a colleague's tcsh completions database. I'm envious ...
-
- complete cd 'n/*/d/'
- complete xfig 'n/*/f:*.fig/'
- complete ghostview 'n/*/f:*.{ps,epsf,eps}/'
- complete uncompress 'n/*/f:*.Z/'
- complete man 'n/*/c/'
- complete finger 'p/1/u/' # complete user-names
- complete gcc 'n/*/f:*.[cao]/'
- complete talk p/1/'`users | tr " " "\012" | uniq`'/ n/\*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/
- complete rsh 'p+1+`cat /etc/hosts.equiv`+' 'p/2/c/'
- complete rcp 'c/*:/f/' 'p/1/f/' 'p+2+`cat /etc/hosts.equiv`+:+'
-
-