2010-02-21 16:50:52 +00:00
|
|
|
# patool completion
|
2013-02-27 19:55:24 +00:00
|
|
|
|
2010-02-21 16:50:52 +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
|
2010-02-21 16:50:52 +00:00
|
|
|
}
|
|
|
|
complete -F _patool $filenames patool
|