aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash_completion/kerl6
1 files changed, 5 insertions, 1 deletions
diff --git a/bash_completion/kerl b/bash_completion/kerl
index 559d844..ebb14e7 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -3,7 +3,11 @@
_kerl()
{
local cur prev
- _get_comp_words_by_ref cur prev
+ if type _get_comp_words_by_ref &>/dev/null ; then
+ _get_comp_words_by_ref cur prev
+ else
+ cur=$2 prev=$3
+ fi
case $prev in
kerl)