summaryrefslogtreecommitdiffstats
path: root/extra/source/bash-completion/contrib/pkgtools
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2012-09-26 01:10:42 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:51:55 +0200
commit9664bee729d487bcc0a0bc35859f8e13d5421c75 (patch)
treeb428a16618e36ed864a8d76ea3435e19a452bf90 /extra/source/bash-completion/contrib/pkgtools
parent75a4a592e5ccda30715f93563d741b83e0dcf39e (diff)
downloadcurrent-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.gz
current-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.xz
Slackware 14.0slackware-14.0
Wed Sep 26 01:10:42 UTC 2012 Slackware 14.0 x86_64 stable is released! We're perfectionists here at Slackware, so this release has been a long time a-brewing. But we think you'll agree that it was worth the wait. Slackware 14.0 combines modern components, ease of use, and flexible configuration... our "KISS" philosophy demands it. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Thanks to everyone who helped make this happen. The Slackware team, the upstream developers, and (of course) the awesome Slackware user community. Have fun! :-)
Diffstat (limited to 'extra/source/bash-completion/contrib/pkgtools')
-rw-r--r--extra/source/bash-completion/contrib/pkgtools127
1 files changed, 0 insertions, 127 deletions
diff --git a/extra/source/bash-completion/contrib/pkgtools b/extra/source/bash-completion/contrib/pkgtools
deleted file mode 100644
index 2b438efca..000000000
--- a/extra/source/bash-completion/contrib/pkgtools
+++ /dev/null
@@ -1,127 +0,0 @@
-# bash completion for Slackware Linux pkgtools
-
-[ -f /etc/slackware-version ] &&
-{
-
-have pkgtool &&
-_pkgtool()
-{
- COMPREPLY=()
- local cur="${COMP_WORDS[COMP_CWORD]}"
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--sets --ignore-tagfiles --tagfile \
- --source-mounted --source_dir --target_dir --source_device' \
- -- "$cur" ) )
- return 0
- fi
-
- local prev=${COMP_WORDS[COMP_CWORD-1]}
-
- case $prev in
- --source_dir|--target_dir)
- _filedir -d
- return 0
- ;;
- --sets)
- # argument required but no completions available
- return 0
- ;;
- --source_device)
- COMPREPLY=( $( compgen -f -d -- "${cur:-/dev/}" ) )
- return 0
- ;;
- --tagfile)
- _filedir
- return 0
- ;;
- esac
-} &&
-complete -F _pkgtool pkgtool
-
-have removepkg &&
-_removepkg()
-{
- COMPREPLY=()
- local cur=`_get_cword`
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-copy -keep -preserve -warn' \
- -- "$cur" ) )
- return 0
- fi
-
- COMPREPLY=( $( cd /var/log/packages; compgen -f -- "$cur" ) )
-} &&
-complete -F _removepkg removepkg
-
-have upgradepkg &&
-_upgradepkg()
-{
- COMPREPLY=()
- local cur=`_get_cword`
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--dry-run --install-new --reinstall \
- --verbose' -- "$cur") )
- return 0
- fi
-
- _filedir "t[bglx]z"
-} && complete -F _upgradepkg upgradepkg
-
-have installpkg &&
-_installpkg()
-{
- COMPREPLY=()
- local cur=`_get_cword`
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--warn --md5sum --root --infobox --terse \
- --menu --ask --priority --tagfile' -- "$cur") )
- return 0
- fi
-
- local prev=`_get_pword`
-
- case $prev in
- --root)
- _filedir -d
- return 0
- ;;
- --priority)
- COMPREPLY=( $( compgen -W 'ADD REC OPT SKP' -- "$cur" ) )
- return 0
- ;;
- --tagfile)
- _filedir
- return 0
- ;;
- esac
-
- _filedir "t[bglx]z"
-} && complete -F _installpkg installpkg
-
-have makepkg &&
-_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|--linkadd|-c|--chown)
- COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
- return 0
- ;;
- esac
-
- _filedir
-} && complete -F _makepkg makepkg
-
-have explodepkg &&
-complete -o plusdirs -f -X '!*.t[bglx]z' explodepkg
-
-}