home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / bash / bug / 602 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.6 KB  |  35 lines

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