slpkg/conf/slpkg.bash-completion

15 lines
542 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-09 02:38:16 +02:00
COMPREPLY=( $( compgen -W "update upgrade repo-add repo-remove repo-list repo-info slpkg --autobuild --blacklist --queue --list --check --sync --tracking --print --network --FIND --find --install --upgrade --reinstall --remove --display --add --remove list build install build-install --index --installed --color= --skip= --resolve-off" -- $cur ))
2015-03-01 12:57:00 +01:00
else
_filedir
fi
}
complete -F _slpkg slpkg