diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-02-12 00:07:27 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-02-12 00:07:27 +1300 |
commit | 2d69a56b9d1314658de29ace609a11d312a66130 (patch) | |
tree | 90487e5ea7baf315ea0a7db673cf701b86a36839 /bash/bash_completion.d/make.bash | |
parent | Break a long line (diff) | |
download | dotfiles-2d69a56b9d1314658de29ace609a11d312a66130.tar.gz dotfiles-2d69a56b9d1314658de29ace609a11d312a66130.zip |
Use bashdefault if available in more completions
Diffstat (limited to 'bash/bash_completion.d/make.bash')
-rw-r--r-- | bash/bash_completion.d/make.bash | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bash/bash_completion.d/make.bash b/bash/bash_completion.d/make.bash index b3314e21..bb01b36a 100644 --- a/bash/bash_completion.d/make.bash +++ b/bash/bash_completion.d/make.bash @@ -48,4 +48,10 @@ _make() { esac done < "$mf" } -complete -F _make -o default make + +# bashdefault requires Bash >=3.0 +if ((BASH_VERSINFO[0] >= 3)) ; then + complete -F _make -o bashdefault -o default make +else + complete -F _make -o default make +fi |