summaryrefslogtreecommitdiffstats
path: root/completions/isql
blob: 4258c519d862ab3ee4f03b0cd304c23ecc4f6a7f (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: filetype=sh