cabal-rpm/bash_completion

15 lines
313 B
Bash
Raw Normal View History

2020-08-13 05:01:21 +00:00
_cabal-rpm()
{
local CMDLINE
local IFS=$'\n'
CMDLINE=(--bash-completion-index $COMP_CWORD)
for arg in ${COMP_WORDS[@]}; do
CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
done
COMPREPLY=( $(cabal-rpm "${CMDLINE[@]}") )
}
complete -o filenames -F _cabal-rpm cabal-rpm cblrpm