patool/patool.bash-completion

20 lines
313 B
Plaintext
Raw Normal View History

# patool completion
2013-02-27 19:55:24 +00:00
have patool &&
_patool()
{
2013-02-27 19:55:24 +00:00
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if type _argcomplete &> /dev/null; then
_argcomplete "$@"
else
_filedir
fi
return 0
}
complete -F _patool $filenames patool