To install this package, run in Emacs:
M-x package-install RET pcmpl-args RET
pcmpl-args extends option and argument completion of shell commands read by Emacs. It is intended to make shell completion in Emacs comparable to the rather excellent completion provided by both Bash and Zsh.
This package uses pcomplete
to define completion handlers which are
used whenever shell completion is performed. This includes when
commands are read in the minibuffer via shell-command
(M-!
) or in
shell-mode
.
Completion support is provided for many different commands including:
To use this package, install pcmpl-args via your package manager from Melpa and add the following to your init.el:
(require 'pcmpl-args)
Note: This package redefines the following functions:
pcomplete/bzip2
pcomplete/chgrp
pcomplete/chown
pcomplete/gdb
pcomplete/gzip
pcomplete/make
pcomplete/rm
pcomplete/rmdir
pcomplete/tar
pcomplete/time
pcomplete/which
pcomplete/xargs
This package contains a number of utilities for defining new
pcomplete
completion commands:
COMMAND --help
.man COMMAND
.