diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-10-26 19:29:33 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-10-26 19:29:33 +0300 |
commit | 5811d47f0ee8642fd2dc474ea82bd00391b9735b (patch) | |
tree | 82d4d6dbc34fee142cc1938c7c6671661155abe5 | |
parent | 889e1ae13ebb21ff1779bbcc454daffeb6d83ccd (diff) | |
download | bash-completion-5811d47f0ee8642fd2dc474ea82bd00391b9735b.tar.gz |
apt-build, apt-get, aptitude: Load _comp_dpkg_installed_packages on demand.
-rw-r--r-- | completions/apt-build | 3 | ||||
-rw-r--r-- | completions/apt-get | 3 | ||||
-rw-r--r-- | completions/aptitude | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/completions/apt-build b/completions/apt-build index 2a11f221..dcf4325f 100644 --- a/completions/apt-build +++ b/completions/apt-build @@ -19,7 +19,8 @@ _apt_build() return 0 ;; remove) - COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) ) + COMPREPLY=( \ + $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) ) return 0 ;; *) diff --git a/completions/apt-get b/completions/apt-get index 25e256a8..bbc43306 100644 --- a/completions/apt-get +++ b/completions/apt-get @@ -17,7 +17,8 @@ _apt_get() remove|autoremove|purge) if [ -f /etc/debian_version ]; then # Debian system - COMPREPLY=( $( _comp_dpkg_installed_packages $cur ) ) + COMPREPLY=( $( \ + _xfunc dpkg _comp_dpkg_installed_packages $cur ) ) else # assume RPM based _xfunc rpm _rpm_installed_packages diff --git a/completions/aptitude b/completions/aptitude index b1274971..06c3faea 100644 --- a/completions/aptitude +++ b/completions/aptitude @@ -45,7 +45,8 @@ _aptitude() return 0 ;; purge|remove|reinstall|forbid-version) - COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) ) + COMPREPLY=( \ + $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) ) return 0 ;; unhold) |