SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

For users of the ZSH shell:

It it possible to use Feta and APT to autocomplete commands. To do that, add the following lines to your ~/.zlogin or ~/.zshrc:

compctl -D -f + -UQ -K multicomp
fetacmds=(`feta commands`)
pkgnames=(`/usr/bin/apt-cache pkgnames`) compctl -x 'p[1]' -k fetacmds - 'p[2,-1]' -k pkgnames + -g '*.deb' + -g '/' + -f -- feta

Now, type 'feta '<tab>, and you should get a list of commands you can autocomplete. Typing tab again will let you see a list of packages, which you can also autocomplete.

The downside is that this can be pretty slow, and affect shell startup time.

Thanks to Brett Smith for help with ZSH's compctl stuff.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.