mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
Fixed issue #19 'Rake not auto completing'. The stat command syntax that was being used was not correct. Or at least on my machine. See man page for the stat command
This commit is contained in:
parent
e1332bd500
commit
fa344e3579
@ -1,8 +1,8 @@
|
|||||||
_rake_does_task_list_need_generating () {
|
_rake_does_task_list_need_generating () {
|
||||||
if [ ! -f .rake_tasks~ ]; then return 0;
|
if [ ! -f .rake_tasks~ ]; then return 0;
|
||||||
else
|
else
|
||||||
accurate=$(stat -f%m .rake_tasks~)
|
accurate=$(stat -c "%n" .rake_tasks~)
|
||||||
changed=$(stat -f%m Rakefile)
|
changed=$(stat -c "%n" Rakefile)
|
||||||
return $(expr $accurate '>=' $changed)
|
return $(expr $accurate '>=' $changed)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user