mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Split bash-completion snippet in small ones
/usr/share/bash-completion/completions/ now uses dynamic loading based on file name.
This commit is contained in:
14
src/util/bash-completion/mdb-hexdump
Normal file
14
src/util/bash-completion/mdb-hexdump
Normal file
@@ -0,0 +1,14 @@
|
||||
#-*- mode: shell-script;-*-
|
||||
have mdb-hexdump &&
|
||||
_mdb_hexdump()
|
||||
{
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
|
||||
if (( COMP_CWORD == 1 )); then
|
||||
_filedir '@(mdb|mdw|accdb)'
|
||||
fi
|
||||
return 0
|
||||
} &&
|
||||
complete -F _mdb_hexdump mdb-hexdump
|
||||
Reference in New Issue
Block a user