diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
commit | 6d88f1055806932d9291f96847d2b691cccda2cd (patch) | |
tree | 0ff79eedaa8a239331256048981deedbd0721965 /completions/apt-build | |
parent | 059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff) | |
download | bash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz |
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/apt-build')
-rw-r--r-- | completions/apt-build | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/completions/apt-build b/completions/apt-build index 3812b20d..0723bcc4 100644 --- a/completions/apt-build +++ b/completions/apt-build @@ -16,27 +16,23 @@ _apt_build() case $special in install|source|info) COMPREPLY=( $( apt-cache pkgnames "$cur" 2> /dev/null ) ) - return 0 ;; remove) COMPREPLY=( \ $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) ) - return 0 - ;; - *) - return 0 ;; esac + return fi case $prev in - --patch|--build-dir|--repository-dir) - _filedir - return 0 - ;; - -h|--help) - return 0 - ;; + --patch|--build-dir|--repository-dir) + _filedir + return + ;; + -h|--help) + return + ;; esac if [[ "$cur" == -* ]]; then @@ -51,9 +47,7 @@ _apt_build() -- "$cur" ) ) fi - - return 0 } && complete -F _apt_build apt-build -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |