aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/mysql.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-21 13:54:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-21 13:54:30 +1300
commit5bfebd765f1de0bf662e1c7ea75533971e8e502f (patch)
tree34571eb06abc23e11d6633197bfe2828891106a5 /bash/bashrc.d/mysql.bash
parentTidy up completion considerably; no more compgen (diff)
downloaddotfiles-5bfebd765f1de0bf662e1c7ea75533971e8e502f.tar.gz
dotfiles-5bfebd765f1de0bf662e1c7ea75533971e8e502f.zip
Switch compopt back out
Damn, looks like 2.05a doesn't have compopt; put it back into the complete line
Diffstat (limited to 'bash/bashrc.d/mysql.bash')
-rw-r--r--bash/bashrc.d/mysql.bash6
1 files changed, 1 insertions, 5 deletions
diff --git a/bash/bashrc.d/mysql.bash b/bash/bashrc.d/mysql.bash
index 33231c13..67feca3c 100644
--- a/bash/bashrc.d/mysql.bash
+++ b/bash/bashrc.d/mysql.bash
@@ -24,10 +24,6 @@ mysql() {
# Completion setup for MySQL for configured databases
_mysql() {
- # The completed results are filenames, and if there are no matches, do
- # default completion
- compopt -o filenames -o default
-
# Only makes sense for first argument
((COMP_CWORD == 1)) || return 1
@@ -59,5 +55,5 @@ _mysql() {
printf '%s\0' "${cnfs[@]}"
)
}
-complete -F _mysql mysql
+complete -F _mysql -o default -o filenames mysql