22 lines
532 B
Bash
22 lines
532 B
Bash
# bash completion for Slackware Linux pkgtools
|
|
|
|
[ -f /etc/slackware-version ] && have removepkg || return
|
|
|
|
_removepkg()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
|
|
} &&
|
|
complete -F _removepkg -o filenames removepkg &&
|
|
complete -o dirnames -f -X '!*.t[bglx]z' installpkg upgradepkg explodepkg
|
|
|
|
# Local variables:
|
|
# mode: shell-script
|
|
# sh-basic-offset: 4
|
|
# sh-indent-comment: t
|
|
# indent-tabs-mode: nil
|
|
# End:
|
|
# ex: ts=4 sw=4 et filetype=sh
|