[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770
Igor Murzov
igor at gplsoft.org
Mon May 2 10:26:58 UTC 2011
The following commit has been merged in the master branch:
commit 3933d030bf1156b65221ecc8277acb2d94cc4a7b
Author: Igor Murzov <igor at gplsoft.org>
Date: Mon May 24 23:33:52 2010 +0400
Add makepkg(8) completion
diff --git a/contrib/pkgtools b/contrib/pkgtools
index 31d52e7..ec4a82a 100644
--- a/contrib/pkgtools
+++ b/contrib/pkgtools
@@ -98,6 +98,29 @@ _installpkg()
$(compgen -d -- "$cur") )
} && complete -F _installpkg -o filenames installpkg
+have makepkg && [ -f /etc/slackware-version ] &&
+_makepkg()
+{
+ COMPREPLY=()
+ local cur=`_get_cword`
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-l --linkadd -p --prepend \
+ -c --chown' -- "$cur") )
+ return 0
+ fi
+
+ local prev=`_get_pword`
+
+ case $prev in
+ -l|-l|-c|--chown)
+ COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
+ return 0
+ ;;
+ esac
+ return 0
+} && complete -F _makepkg makepkg
+
+have explodepkg && [ -f /etc/slackware-version ] &&
complete -o plusdirs -f -X '!*.t[bglx]z' explodepkg
# Local variables:
--
bash-completion
More information about the Bash-completion-commits
mailing list