Split Slackware pkgtools completion to contrib/pkgtools.
This commit is contained in:
parent
df5f55e055
commit
079aca216a
1
CHANGES
1
CHANGES
@ -86,6 +86,7 @@ bash-completion (1.x)
|
|||||||
* Split FreeBSD kld(un)load completion to contrib/kldload.
|
* Split FreeBSD kld(un)load completion to contrib/kldload.
|
||||||
* Split FreeBSD pkg_* completion to contrib/pkg_install.
|
* Split FreeBSD pkg_* completion to contrib/pkg_install.
|
||||||
* Split FreeBSD portupgrade and friends completion to contrib/portupgrade.
|
* Split FreeBSD portupgrade and friends completion to contrib/portupgrade.
|
||||||
|
* Split Slackware pkgtools completion to contrib/pkgtools.
|
||||||
|
|
||||||
[ Todd Zullinger ]
|
[ Todd Zullinger ]
|
||||||
* Make yum complete on filenames after install, deplist, update and upgrade
|
* Make yum complete on filenames after install, deplist, update and upgrade
|
||||||
|
@ -93,6 +93,7 @@ bashcomp_DATA = contrib/ant \
|
|||||||
contrib/pine \
|
contrib/pine \
|
||||||
contrib/pkg-config \
|
contrib/pkg-config \
|
||||||
contrib/pkg_install \
|
contrib/pkg_install \
|
||||||
|
contrib/pkgtools \
|
||||||
contrib/portupgrade \
|
contrib/portupgrade \
|
||||||
contrib/postgresql \
|
contrib/postgresql \
|
||||||
contrib/postfix \
|
contrib/postfix \
|
||||||
|
@ -1407,21 +1407,6 @@ for i in env netstat seq uname units wget; do
|
|||||||
done
|
done
|
||||||
unset i
|
unset i
|
||||||
|
|
||||||
# Slackware Linux removepkg completion
|
|
||||||
#
|
|
||||||
have removepkg && [ -f /etc/slackware-version ] &&
|
|
||||||
_removepkg()
|
|
||||||
{
|
|
||||||
local packages cur
|
|
||||||
|
|
||||||
COMPREPLY=()
|
|
||||||
cur=`_get_cword`
|
|
||||||
|
|
||||||
COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
|
|
||||||
} &&
|
|
||||||
complete -F _removepkg $filenames removepkg &&
|
|
||||||
complete $dirnames -f -X '!*.tgz' installpkg upgradepkg explodepkg
|
|
||||||
|
|
||||||
# look(1) completion
|
# look(1) completion
|
||||||
#
|
#
|
||||||
have look &&
|
have look &&
|
||||||
|
17
contrib/pkgtools
Normal file
17
contrib/pkgtools
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
||||||
|
# ex: ts=8 sw=8 noet filetype=sh
|
||||||
|
#
|
||||||
|
# bash completion for Slackware Linux pkgtools
|
||||||
|
|
||||||
|
have removepkg && [ -f /etc/slackware-version ] &&
|
||||||
|
_removepkg()
|
||||||
|
{
|
||||||
|
local packages cur
|
||||||
|
|
||||||
|
COMPREPLY=()
|
||||||
|
cur=`_get_cword`
|
||||||
|
|
||||||
|
COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
|
||||||
|
} &&
|
||||||
|
complete -F _removepkg $filenames removepkg &&
|
||||||
|
complete $dirnames -f -X '!*.tgz' installpkg upgradepkg explodepkg
|
Loading…
x
Reference in New Issue
Block a user