From 042918437c19a56b6dc18ae076bb456511bd1bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 14 Jan 2009 20:37:51 +0000 Subject: [PATCH] Complete on installed packages, dirs and *.rpm, *.spec only. git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1489 9bc8b190-ac0f-0410-8968-dc7d1f502856 --- rpmlint.bash-completion | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpmlint.bash-completion b/rpmlint.bash-completion index 6edda0aa..50d79a59 100644 --- a/rpmlint.bash-completion +++ b/rpmlint.bash-completion @@ -30,7 +30,9 @@ _rpmlint() -E --extractdir -p --profile -V --version -n \ --noexception -f --file' -- $cur ) ) else - _filedir + type _rpm_installed_packages &>/dev/null && \ + _rpm_installed_packages + _filedir '@(rpm|spec)' fi } complete -F _rpmlint $filenames rpmlint