From 11761cdc36957e6102b2a54be379c3e5c4a1779a Mon Sep 17 00:00:00 2001 From: Satoshi Ohmori Date: Wed, 18 Nov 2015 02:18:08 +0900 Subject: [PATCH] Use _rake_command instead of bundled_rake when using bundler plugin --- plugins/rake-fast/rake-fast.plugin.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () {