diff options
author | yufeng <[email protected]> | 2013-06-16 19:13:52 +0900 |
---|---|---|
committer | yufeng <[email protected]> | 2013-06-16 19:13:52 +0900 |
commit | 5322e9fffaed11e84c545552c34e5d1d252ff7e0 (patch) | |
tree | 6b47293c7a9eddaee27f60181d45c4586ce88521 /bash_completion/kerl | |
parent | 6cd7d5764b75efc27a53beae7c887240087e9849 (diff) | |
download | kerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.tar.gz kerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.tar.bz2 kerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.zip |
make _get_comp_words_by_ref more strong
Diffstat (limited to 'bash_completion/kerl')
-rw-r--r-- | bash_completion/kerl | 6 |
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) |