mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
Use _rake_command instead of bundled_rake when using bundler plugin
This commit is contained in:
parent
135c3763cc
commit
11761cdc36
1 changed files with 5 additions and 1 deletions
|
|
@ -12,7 +12,11 @@ _rake_does_task_list_need_generating () {
|
||||||
}
|
}
|
||||||
|
|
||||||
_rake_generate () {
|
_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 () {
|
_rake () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue