61b9ec0373
Fix _isql completion waiting for grep input if $ODBCINI not set; handle whitespace in $ODBCINI.
14 lines
322 B
Bash
14 lines
322 B
Bash
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
|
# ex: ts=8 sw=8 noet filetype=sh
|
|
#
|
|
# isql completion by Victor Bogado da Silva Lins <victor@bogado.net>
|
|
|
|
_isql()
|
|
{
|
|
local cur
|
|
cur=`_get_cword`
|
|
|
|
[ -f "$ODBCINI" ] && COMPREPLY=( $( grep \\[$cur "$ODBCINI" | tr -d \\[\\] ) )
|
|
}
|
|
complete -F _isql isql
|