slpkg/conf/slpkg.bash-completion

15 lines
378 B
Text
Raw Normal View History

2015-03-01 12:57:00 +01:00
_slpkg()
{
local cur
cur=${COMP_WORDS[COMP_CWORD]}
if [[ "$cur" == -* ]]; then
2015-06-13 16:08:55 +02:00
COMPREPLY=( $( compgen -W "--autobuild --blacklist --queue --list --check --sync --tracking --print --network --FIND --find --installpkg --upgradepkg --removepkg --display" -- $cur ))
2015-03-01 12:57:00 +01:00
else
_filedir
fi
}
complete -F _slpkg slpkg