aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-06 10:46:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-06 10:46:42 +1200
commit856365f937207b224a12b477532bb3decee0749b (patch)
tree259a9aa9a2e7f8a3aff3dfd8ea6d63a6b20f2bca /bash/bash_completion.d
parentAdd left-paren to subshell cases (diff)
downloaddotfiles-856365f937207b224a12b477532bb3decee0749b.tar.gz
dotfiles-856365f937207b224a12b477532bb3decee0749b.zip
Feature test for find(1) completion
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r--bash/bash_completion.d/find.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash/bash_completion.d/find.bash b/bash/bash_completion.d/find.bash
index 50a6cc41..74dc17ad 100644
--- a/bash/bash_completion.d/find.bash
+++ b/bash/bash_completion.d/find.bash
@@ -1,3 +1,7 @@
+# compopt requires Bash >=4.0, and I don't think it's worth making a compatible
+# version
+((BASH_VERSINFO[0] >= 4)) || return
+
# Semi-intelligent completion for find(1); nothing too crazy
_find() {