mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Merge f722fb08a4 into 906a7731af
This commit is contained in:
commit
f5f805f244
1 changed files with 17 additions and 1 deletions
|
|
@ -8,7 +8,23 @@ _rake_refresh () {
|
|||
}
|
||||
|
||||
_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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue