The following commit has been merged in the master branch:
commit 3933d030bf1156b65221ecc8277acb2d94cc4a7b
Author: Igor Murzov <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits