18 lines
458 B
Bash
18 lines
458 B
Bash
# -*- 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
|