summaryrefslogtreecommitdiff
path: root/completions/isql
blob: 4bd24c41e5ee8be962619d6e4741195f6b6b5037 (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