aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion/kerl
diff options
context:
space:
mode:
Diffstat (limited to 'bash_completion/kerl')
-rw-r--r--bash_completion/kerl6
1 files changed, 5 insertions, 1 deletions
diff --git a/bash_completion/kerl b/bash_completion/kerl
index 76c4ad2..689463d 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -4,7 +4,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)