15 lines
370 B
Plaintext
Raw Normal View History

# isql completion -*- shell-script -*-
# by Victor Bogado da Silva Lins <victor@bogado.net>
_isql()
{
local cur prev words cword
_init_completion || return
2009-10-04 19:42:50 +02:00
[ -f "$ODBCINI" ] \
&& COMPREPLY=( $( command grep \\["$cur" "$ODBCINI" | tr -d \\[\\] ) )
2009-06-08 21:22:43 +03:00
} &&
complete -F _isql isql
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh