aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/mysql.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-12 20:55:58 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-12 20:55:58 +1300
commit092652424fab8004907f87472cc795fb527ee20b (patch)
tree42c8e0c13d1e616fef204ae46cbed37238cb0b7c /bash/bashrc.d/mysql.bash
parentAdjust declarations of local vars in compspecs (diff)
downloaddotfiles-092652424fab8004907f87472cc795fb527ee20b.tar.gz
dotfiles-092652424fab8004907f87472cc795fb527ee20b.zip
Use default completion on empty COMPREPLY
Diffstat (limited to 'bash/bashrc.d/mysql.bash')
-rw-r--r--bash/bashrc.d/mysql.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/mysql.bash b/bash/bashrc.d/mysql.bash
index 992d342c..391c130d 100644
--- a/bash/bashrc.d/mysql.bash
+++ b/bash/bashrc.d/mysql.bash
@@ -30,6 +30,7 @@ _mysql() {
files=("$dir"/*.cnf)
((! ${#files[@]}))
); then
+ COMPREPLY=()
return 1
fi
@@ -40,5 +41,5 @@ _mysql() {
items=("${items[@]%%.cnf}")
COMPREPLY=( $(compgen -W "${items[*]}" -- "$word") )
}
-complete -F _mysql mysql
+complete -F _mysql -o default mysql