diff options
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 |