diff --git a/plugins/rake-fast/rake-fast.plugin.zsh b/plugins/rake-fast/rake-fast.plugin.zsh index d305eb1f0..28d9deb00 100644 --- a/plugins/rake-fast/rake-fast.plugin.zsh +++ b/plugins/rake-fast/rake-fast.plugin.zsh @@ -12,7 +12,11 @@ _rake_does_task_list_need_generating () { } _rake_generate () { - rake --silent --tasks | cut -d " " -f 2 > .rake_tasks + if type bundled_rake &> /dev/null && type _rake_command &> /dev/null; then + _rake_command --silent --tasks | cut -d " " -f 2 > .rake_tasks + else + command rake --silent --tasks | cut -d " " -f 2 > .rake_tasks + fi } _rake () {