aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/make.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/make.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/make.bash')
-rw-r--r--bash/bashrc.d/make.bash5
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/bashrc.d/make.bash b/bash/bashrc.d/make.bash
index 216894fd..8580572e 100644
--- a/bash/bashrc.d/make.bash
+++ b/bash/bashrc.d/make.bash
@@ -1,9 +1,6 @@
# Completion setup for Make, completing targets
_make() {
- # Do default completion if no matches
- compopt -o default
-
# Bail if no legible Makefile
[[ ! -r Makefile ]] || return 1
@@ -29,5 +26,5 @@ _make() {
COMPREPLY=("${COMPREPLY[@]}" "$target")
done
}
-complete -F _make make
+complete -F _make -o default make