summaryrefslogtreecommitdiff
path: root/completions/isql
blob: 43cd6dd303d9ab053d49ac5ea642cfb26a21c00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# isql completion                                          -*- shell-script -*-
# by Victor Bogado da Silva Lins <victor@bogado.net>

_isql()
{
    local cur prev words cword
    _init_completion || return

    [[ -f $ODBCINI ]] \
        && COMPREPLY=( $( command grep \\["$cur" "$ODBCINI" | tr -d \\[\\] ) )
} &&
complete -F _isql isql

# ex: ts=4 sw=4 et filetype=sh