summaryrefslogtreecommitdiff
path: root/completions/isql
blob: 1e79b55d64b77bcf4b6833d9bc8ab0e0a13c3ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# isql completion 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

# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh