./shells/bash-completion, Programmable completion specifications for bash

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.1nb1, Package name: bash-completion-2.1nb1, Maintainer: pkgsrc-users

A relatively new feature in bash is programmable completion, which
has been available since the beta version of 2.04. Programmable
completion will be familiar to you if you are a zsh user. It also
exists, albeit in a much less usable form, in tcsh.

Standard completion

bash has offered many forms of completion since its inception,
including path, file, user, host and variable completion.

* Path-name completion
* File-name completion
* User-name completion
* Host-name completion
* Variable-name completion

Programmable completion indefinitely extends the type of completion
you can perform.

This package contains a variety of completions for various programs.


Required to run:
[shells/bash]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: fad16b1cdae2b40d6814f786990e0e50ab2d537a
RMD160: a2d42658f2f6a77563614a4a733c95c57bb42cfc
Filesize: 333.144 KB

Version history: (Expand)


CVS history: (Expand)


   2017-03-14 15:51:28 by Jonathan Perkin | Files touched by this commit (3) | Package updated
Log message:
Pull in upstream fix for bug 1289597.  Brought to our attention by Kevin
Neaton in joyent/pkgsrc#471.  Bump PKGREVISION.
   2015-11-03 00:00:35 by Alistair G. Crooks | Files touched by this commit (25)
Log message:
Add SHA512 digests for distfiles for shells category

Existing SHA1 digests verified, all found to be the same on the
machine holding the existing distfiles (morden).  Existing SHA1
digests retained for now as an audit trail.
   2013-05-10 14:04:00 by Emile iMil Heitor | Files touched by this commit (1)
Log message:
Removed unnecessary comments
   2013-05-10 14:01:51 by Emile iMil Heitor | Files touched by this commit (6) | Package updated
Log message:
Updated bash-completion to 2.1

An extensive changelog is readable here:

http://bash-completion.alioth.debian.or … HANGES-1.1
http://bash-completion.alioth.debian.or … HANGES-1.2
http://bash-completion.alioth.debian.or … HANGES-1.3
http://bash-completion.alioth.debian.or … HANGES-2.0
http://bash-completion.alioth.debian.or … HANGES-2.1
   2013-04-06 21:42:43 by Blue Rats | Files touched by this commit (12)
Log message:
'The "+=" operator should only be used with lists.'
   2012-09-12 01:25:10 by Aleksej Saushev | Files touched by this commit (26)
Log message:
"user-destdir" is default these days
   2009-09-29 19:19:11 by Thomas Klausner | Files touched by this commit (1) | Package updated
Log message:
Fix a bug reported by Mark Norman Francis on pkgsrc-users:
BASH_COMPLETION_DIR was set incorrectly.

Bump PKGREVISION.
   2009-09-25 14:29:27 by Thomas Klausner | Files touched by this commit (5) | Package updated
Log message:
Update to 1.0. Fix paths so that inclusion works without setting
additional environment variables.

Note to packagers:
packages installing additional completion files should drop
them into ${DESTDIR}${PREFIX}/share/bash-completion.d
with the name of the package as file name.

bash-completion (1.0)

  [ Guillaume Rousse ]
  * Make bibtex complete on .aux files
  * Add .xvid and .XVID to player completion
  * Added cowsay/cowthink completion
  * Added brctl completion
  * Added cpan2dist completion
  * Added qemu completion
  * Added net-tools (mii-tool and mii-diag) completions
  * Added minicom completion
  * Added quota-tools completion
  * Added rdesktop completion
  * Added tightvncviewer completion
  * Cleanup screen completion, and make it completes on options

  [ David Paleino ]
  * Added .kar to Timidity completion.
  * Fix killall completion, remove trailing ":" on certain process
    names
  * Fix man -l completing filenames (Debian: #497074)
  * (Partly) fixed java classes completion (Debian: #496828). Look for
    FIXME in source.
  * Dump to /dev/null error message from look(1) with no arguments
    (Debian: #495142)
  * Set ssh as default for rsync (was rsh) (Debian: #492328)
  * Added .oga, .ogv, .ogx to mplayer completion (Debian: #496162)
  * Added .epub to unzip|zipinfo completion (Debian: #492476)
  * Added ssh-copy-id completion (Debian: #491856)
  * Moved ssh completion to separate file (Debian: #360628)
  * Bogus completion when mounting subdirs fixed (Debian: #322238)
  * Fix `apt-cache showsrc` completing only on source package names
    (Debian: #361535)
  * Fixed bugs with gdb completion:
    - when an empty directory is in $PATH (thanks to Morita Sho)
      (Debian: #497597)
    - when a non-existing directory is in $PATH (Debian: #499780)
  * Fix missing completion for "-n" and "-e" (we were using \ 
echo, now
    using printf) (thanks to Morita Sho) (Debian: #498105)
  * Fixed gpg completion:
    - --@(export|@(?(l|nr|nrl)sign|edit)-key)) (Debian: #500316)
    - -@(r|-recipient))
  * Fixed .cb[rz] completion for evince (Debian: #502885)
  * Added gksudo, gksu, kdesudo completion
  * Added apache2ctl completion
  * Added gpg2 completion (Debian: #489927)
  * Fixed mplayer -skin completion (Debian: #501473)
  * Fixed errors with POSIX enabled (Debian: #502804)
  * Fixed dpkg-source wrong exit() with return() (Debian: #)
  * Added --schedule-only to aptitude's completion (Debian: #502664)
  * Added build-dep to aptitude's completion (Debian: #495883)
  * Added support for `-F configfile' to _known_hosts(), ssh, scp and
    sftp, thanks to Freddy Vulto (Debian: #504141)
  * Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
    (Debian: #504650)
  * Allow `Host(Name)' in ssh config file to be indented
  * Allow `Host(Name)' in ssh config file to have trailing comment.
  * Allow for comments in known_hosts files (Debian: #511789)
  * Fixed perl -I/-x completion, thanks to Freddy Vulto
    (Debian: #504547)
  * README updated: explain how to use bash-completion correctly.
    (Debian: #506560)
  * TODO updated: the Alioth team is now upstream.
  * Added qdbus completion, thanks to Terence Simpson (Ubuntu: #257903)
  * Added monodevelop and mdtool completions.
  * Split subversion-related completions to contrib/_subversion
    (prefixed with _ to avoid file conflicts with upstream's one)
  * Fixed completion of environment variables, thanks to Morita Sho
    (Debian: #272660)
  * Fix dpkg completion bug: it listed only non-Essential packages
    (Debian: #511790)
  * Fixed _dpkg_source completion (Debian: #503317)
  * Added _parse_help() to try to parse options listed in $command
    --help
  * Fixed gzip completion to use _parse_help(), since the available
    options vary with distributions
  * Added to_review/ directory, where completions needing a review would
    go. After it gets accepted, the completion would go into contrib/.
  * Remove unused UNAME local variable in _info() (Debian: #501843)
  * AUTHORS added
  * Make _alias() use _get_cword
  * Added .zip to jar completions (Debian: #521041)
  * Merge from Gentoo:
    - fix 'find' completion so that it properly completes on -?(i)whilename.
      Patch by Ciaran McCreesh.
    - use make -qp to parse the Makefile for us, so we get proper completion
      on things like pattern rules. Patch by Mike Kelly <pioto@exherbo.org>.
    - complete on gkrellm2 as well. Patch by Aaron Walker.
    - fix CVS completion
  * Merge from Ubuntu:
    - consume error messages in configure completion (Ubuntu: #223882)
      (Mika Fischer)
    - quote $xspec in _filedir_xspec in case it is empty, which would
      cause errors if there was no match under failglob. (Ubuntu: #194419)
      (Mika Fischer)
  * debian/links fixed (Debian: #494292)
  * debian/control:
    - fixed typo in the long description
    - added Vcs-* fields
  * debian/install:
    - correctly install contrib/* under /etc/bash_completion.d/
  * debian/copyright updated
  * extra/dh_bash-completion:
    - updated to support a list of files in debian/<package>.bash-completion
      (Debian: #512917)

  [ Ville Skyttä ]
  * Added JPEG 2000 files to display completion, thanks to Bastien Nocera
    (RedHat: #304771)
  * Improved rpm macro completion.
  * Added -E to rpm completion.
  * Improved rpm backup file avoidance.
  * Improved /var/log/rpmpkgs based rpm installed package completion.
  * Improved performance of rpm -qa based rpm installed package completion.
  * Improved features and performance of yum completion.
  * Added support for p (POSIX) and x (x.org) man sections.
  * Improved filename based man page completion.
  * Added minimal sqlite3 completion.
  * Improved getent completion (Ville Skyttä, Guillaume Rousse).
  * (Re)fix gzip and bzip2 options completion.
  * Improved svn filename completion (RedHat: #430059).
  * Add lzma completion (Per Øyvind Karlsen, Ville Skyttä).
  * Add .mp2 and .vdr to mplayer completion (RedHat: #444467).
  * Add .mkv, .mp2 and .vdr to *xine completion (RedHat: #444467).
  * Added lzop completion.
  * Fix scp metacharacter escaping.
  * Remove duplicate cpio completion, thanks to Freddy Vulto (Debian: #512823)
  * Fix awk error in "modprobe -r /" completion (Debian: #512556).
  * Expand ~foo to dir name more eagerly to avoid quoting issues.
  * Fix -sourcepath handling in javadoc packages completion.
  * Extract process name completion from _killall to _pnames, make it work
    for others than Linux and FreeBSD.
  * Fix process name completion with relative paths (RedHat: #484578).
  * Use improved process name completion in pgrep in addition to killall.
  * Enable pgrep and pkill completion if the commands are available, not just
    on Linux and FreeBSD.
  * Drop hg completion, an improved version is shipped with Mercurial
    (contrib/bash_completion in the tarball).
  * Make okular complete on same files as evince, thanks to Mary Ellen Foster
    (RedHat: #486998).
  * Apply ps2pdf completion to ps2pdf{12,13,14,wr} too.
  * Simplify bash_completion.sh, return earlier in non-applicable environments.
  * Remove obsolete --buildarch and --buildos rpm(build) completions.
  * Add rpmbuild --target completion.
  * Use "-profile help" to get mplayer and friends -profile completions.
  * Fix local array initialization under bash 3.0, prevents "()" \ 
occurring in
    file and dir name completions.

  [ Freddy Vulto ]
  * Restored `_display()' completion for `display' by removing
    completion-by-extension for `display' (Alioth#311429)
  * Removed duplicate completion option `-borderwidth' for `display'
  * Prevent completion dir from being sourced twice if
    BASH_COMPLETION_DIR and BASH_COMPLETION_COMPAT_DIR are equal (Alioth#311433)
  * Make `_mii-tool()' and `_mii-diag()' POSIX-compliant
  * Fix _isql completion waiting for grep input if $ODBCINI not set; handle
    whitespace in $ODBCINI.
  * Split vncviewer completion in _tightvncviewer() and _xvnc4viewer()
    Added _realcommand() global function.

  [ Jakob Unterwurzacher ]
  * ps2pdf can run on .pdf files as well. (Debian: #516614, Ubuntu: #316943)

  [ Santiago M. Mola ]
  * Add .ape to mplayer supported extensions (Alioth#311510).

 -- David Paleino <d.paleino@gmail.com>  Wed, 25 Mar 2009 23:18:24 +0100

bash-completion (20080705) unstable; urgency=low

  [ David Paleino ]
  * Added more completions to imagemagick (thanks to Nelson A. de
    Oliveira) (Debian: #487786)
  * Added xrandr completion (thanks to Anton Khirnov) (Debian: #487825)
  * Improving _gdb completion:
    - $filenames to $default (Debian: #463969)
    - also show directory names (i.e. compgen -d) in COMPREPLY.
    - added . to $PATH, to allow debugging "local" executables.
    - do not complete Bash's builtins (thanks to Morita Sho)

  [ Luk Claes ]
  * Remove use of ucf for /etc/bash-completion (Debian: #488171).

 -- Luk Claes <luk@debian.org>  Sat, 05 Jul 2008 16:14:15 +0200

bash-completion (20080617.5) unstable; urgency=medium

  * Revert way of setting environment variables (Debian: #487774).
  * Add equals sign to _get_cword for mutt_aliases (Debian: #482635).
  * Enhance mlayer completion (Debian: #487826, #487838).

 -- Luk Claes <luk@debian.org>  Tue, 24 Jun 2008 19:50:57 +0200

bash-completion (20080617.4) experimental; urgency=low

  [ David Paleino ]
  * Merged Ubuntu changes:
    - added quote(), quote_readline(), dequote() helper functions.
    - added _remove_word()
    - fixed _get_cword()
    - refactored _filedir using quote_readline()
    - refactored _filedir_xspec using quote_readline()
    - fixed COMPREPLY's in _iwconfig
    - fixed _cvs()
    - _known_hosts(): use files from UserKnownHostsFile options in
                      addition to standard ones.
    - fixed _command() to correctly prune the command line
    - disabled completion of PostgreSQL users and databases
    - fixed _java_packages()
    - fixed _muttquery()
    - added flv/FLV completion to mplayer
    - added --installed to apt-cache
    - only complete on filenames for aspell
    - fixed code for exclusions compspecs
    - added code to gracefully handle debug options (set +/-v)

 -- Luk Claes <luk@debian.org>  Mon, 23 Jun 2008 19:25:25 +0200

bash-completion (20080617.3) unstable; urgency=low

  [ David Paleino ]
  * Fixed IFS for filedir_xspec - Thanks to Stefan Lippers-Hollmann
    (Debian: #487571)

  [ Luk Claes ]
  * Install dh-bash-completion to ease installation of completions.

 -- Luk Claes <luk@debian.org>  Mon, 23 Jun 2008 07:24:21 +0200

bash-completion (20080617.2) unstable; urgency=low

  [ David Paleino ]
  * New upstream release
    - provide a manpage for extra/dh_bash-completion
    - fix semi-serious problem with _filedir() (Debian: #487449)
  * debian/rules:
    - added rule to generate dh_bash-completion's manpage
  * debian/install, debian/dirs:
    - installing dh_bash-completion into /usr/bin
  * debian/control:
    - new package dh-bash-completion

  [ Luk Claes ]
  * Comment new package to make sure current fix gets in the archive first.
  * Add compression completion for vi(m).

 -- Luk Claes <luk@debian.org>  Sun, 22 Jun 2008 19:47:23 +0200

bash-completion (20080617.1) unstable; urgency=medium

  [ David Paleino ]
  * Urgency set to medium because the package is currently unusable.
  * New upstream sub-release
    - fixed some typos here and there which prevented bash completions
      at all (Debian: #487441).
    - really closing Debian bug #455510.

 -- Luk Claes <luk@debian.org>  Sun, 22 Jun 2008 00:22:53 +0200

bash-completion (20080617) unstable; urgency=low

  [ David Paleino ]
  * New upstream release
    - add more completions to aptitude (Debian: #432289)
    - fixed UTF-8 problem with _get_cword(), thanks to
      Andrei Paskevich (Debian: #472132)
    - fixed autoremove completion, thanks to Flavio Visentin
      (Debian: #474974)
    - cmf and CMF added to playmidi completion (Debian: #365658)
    - added rrdtool completion, thanks to Justin Pryzby (Debian: #428641)
    - added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t})
      (Debian: #472940)
    - fixed escaping problems with job control (i.e. disown, jobs, bg,
      fg): the argument is now surrounded by "" (Debian: #347316)
    - make mkdir complete also on filenames (Debian: #376433)
    - {bz,z}{cat,cmp,diff,egrep,fgrep,grep,less,more} now should complete
      on all filenames, not just compressed archives (just commented out)
      (Debian: #455510)
    - fixes Perl completion (Debian: #470742)
    - fixes get_cword -> _get_cword typo (Debian: #478596)
    - fixes _get_cword() function to properly handle filenames with
      whitespaces (Debian: #394636, #468254, #474094)
    - added .pdf.bz2 completion to evince (Debian: #424736)
    - added .svg completion to display (Debian: #441017)
    - added .m2ts completion to mplayer (Debian: #480879)
    - added extra/dh_bash-completion to ease future rewrite of bc.
  * debian/copyright - now in a fancier machine-parsable format.
  * debian/control:
    - added myself to Uploaders
    - debhelper Build-Depends updated to >= 6.
  * debian/watch:
    - improved current watch line regex
    - added (commented out) probable future watch line
  * debian/compat bumped to 6
  * debian/dirs, debian/install and debian/links added
  * debian/rules:
    - refactored to make use of debian/{dirs,install,links}

  [ Steve Kemp ]
  * Applied patch to fix completion of umount command.
    (Debian: #470539)
  * Fixed the completion of Perl manpages.
    (Debian: #404976)
  * Added 'aif' to the filenames offed for completion for mplayer.
    (Debian: #474517)
  * Allow tsocks completion.
    (Debian: #409423)
  * Update mutt completion to handle local usernames.
    (Debian: #416655)
  * Update apt-get completion to include the flag "--no-install-recommends"
    (Debian: #475242)

 -- Luk Claes <luk@debian.org>  Sat, 21 Jun 2008 21:59:43 +0200

bash-completion (20060301-4) unstable; urgency=low

  * Add some fixes from Ubuntu:
  * Fix completion of filenames with spaces (Debian: #468254).
  * Fix parsing of SSH config files (Debian: #435117).
  * Change priority to standard (Debian: #471666).
  * Add some more completions for xine (Debian: #452083, #471249).
  * Fix completion of gzip (Debian: #351913).
  * Also use $HOSTFILE in hostname completion (Debian: #400380).

 -- Luk Claes <luk@debian.org>  Sat, 22 Mar 2008 23:10:30 +0000

bash-completion (20060301-3) unstable; urgency=low

  * Fix kpdf completion (Debian: #468163, #413374).
  * Fix completion of - or -- with _command (Debian: #415276).
  * Add sux to the complete -u list (Debian: #466089).
  * Add dvipdfm to the list of dvi programs (Debian: #396644).
  * Add --purge-unused option completion for aptitude (Debian: #438471).
  * Add divx extension completion for mplayer (Debian: #444294).
  * Add pdf.gz completion for evince (Debian: #456887).
  * Add --remove-all completion for update-alternatives (Debian: #269173).

 -- Luk Claes <luk@debian.org>  Wed, 05 Mar 2008 22:57:27 +0100

bash-completion (20060301-2) unstable; urgency=low

  * Take over the package.

 -- Luk Claes <luk@debian.org>  Wed, 27 Feb 2008 19:22:03 +0100

bash-completion (20060301-1) unstable; urgency=low

  * Upload to unstable.

 -- Matthias Klose <doko@debian.org>  Sat, 09 Feb 2008 23:18:20 +0100

bash-completion (20060301-0ubuntu2) hardy; urgency=low

  * Replace bash (<< 3.1dfsg-9), handle upgrade in preinst.
  * Exclude hashed hostnames from ssh host completion results. Debian: #428085.
  * Fix: ifup/down don't really complete. Debian: #463756.
  * Allow perl completion to complete filenames, complete -I and -x arguments.
    Debian: #443394.
  * Add find -wholename completion. Debian: #431220.
  * Handle whitespaces in $HOME for _known_hosts() completion. Debian: #414821.
  * dpkg -L: complete for removed-but-not-purged packages. Debian: #372156.
  * Complete for apt-get autoremove. Debian: #433542, #443816, #445332.
  * Update completion for mplayer (mka/flac). Debian: #340452.
  * Add ping6/fping6 completion. Debian: #413170.
  * Handle whitespace in paths for mount/umount completion. Debian: #367957.
  * apt-get: Support --auto-remove. Ubuntu: #60666.

 -- Matthias Klose <doko@ubuntu.com>  Sat, 09 Feb 2008 23:11:32 +0100

bash-completion (20060301-0ubuntu1) hardy; urgency=low

  * Initial release, split out from the bash package.
    The software currently is unsupported upstream.
  * Don't try to set a readonly variable. Ubuntu: #149527.
  * Support purge in apt-get auto completion (Mathias Gug). Ubuntu: #151677.
  * evince: Autocomplete on cbr/cbz/djvu files. Ubuntu: #156200, #175220.
    Debian: #400678.
  * kdvi: complete .*\.dvi\.(gz|bz2). Ubuntu: #128234.
  * kpdf: Complete postscript files. Ubuntu: #162319.
  * Make completion working in the middle of a word (Adam Simpkins).
    Ubuntu: #139666.

 -- Matthias Klose <doko@ubuntu.com>  Fri, 08 Feb 2008 16:46:34 +0100