slpkg/conf/slpkg.bash-completion

15 lines
405 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-05-21 00:41:46 +02:00
COMPREPLY=( $( compgen -W "--help --version update upgrade repo-add repo-remove repo-list repo-info slpkg list --add --remove build install build-install config --index --installed --upgrade --color" -- $cur ))
2015-03-01 12:57:00 +01:00
else
_filedir
fi
}
complete -F _slpkg slpkg