mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 10:29:27 +08:00
18 lines
291 B
Plaintext
18 lines
291 B
Plaintext
|
|
#-*- mode: shell-script;-*-
|
||
|
|
have mdb-ver &&
|
||
|
|
_mdb_ver()
|
||
|
|
{
|
||
|
|
local cur
|
||
|
|
|
||
|
|
COMPREPLY=()
|
||
|
|
cur=${COMP_WORDS[COMP_CWORD]}
|
||
|
|
|
||
|
|
if [[ "$cur" == -* ]]; then
|
||
|
|
COMPREPLY=( $( compgen -W '-M -h --help' -- $cur ) )
|
||
|
|
else
|
||
|
|
_filedir '@(mdb|mdw|accdb)'
|
||
|
|
fi
|
||
|
|
return 0
|
||
|
|
} &&
|
||
|
|
complete -F _mdb_ver mdb-ver
|