summaryrefslogtreecommitdiffstats
path: root/completions/isql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/isql14
1 files changed, 14 insertions, 0 deletions
diff --git a/completions/isql b/completions/isql
new file mode 100644
index 0000000..4258c51
--- /dev/null
+++ b/completions/isql
@@ -0,0 +1,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