mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
plugin rake-fast: add Rails compatibility
This commit is contained in:
parent
f558a460c2
commit
f722fb08a4
1 changed files with 17 additions and 1 deletions
|
|
@ -8,7 +8,23 @@ _rake_refresh () {
|
||||||
}
|
}
|
||||||
|
|
||||||
_rake_does_task_list_need_generating () {
|
_rake_does_task_list_need_generating () {
|
||||||
[[ ! -f .rake_tasks ]] || [[ Rakefile -nt .rake_tasks ]]
|
_rake_tasks_missing || _rakefile_has_changes || _sub_rake_files_have_changes
|
||||||
|
}
|
||||||
|
|
||||||
|
_rake_tasks_missing () {
|
||||||
|
[[ ! -f .rake_tasks ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
_rakefile_has_changes () {
|
||||||
|
[[ Rakefile -nt .rake_tasks ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
_sub_rake_files_have_changes () {
|
||||||
|
if find . -type f -name "*.rake" 2>/dev/null | grep -q .; then
|
||||||
|
[[ $(find ./**/*.rake(.om[1])) -nt .rake_tasks ]]
|
||||||
|
else
|
||||||
|
false
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_rake_generate () {
|
_rake_generate () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue