This commit is contained in:
Michael Bøcker-Larsen 2015-11-04 00:09:05 +05:45
commit 2120573783
5 changed files with 120 additions and 122 deletions

View file

@ -10,7 +10,7 @@ cfc () {
}
# compile from clipboard & print
alias cfp='coffeeMe "$(clippaste)"'
alias cfp='cf "$(clippaste)"'
# compile from clipboard and copy to clipboard
alias cfpc='cfp | clipcopy'

View file

@ -8,17 +8,7 @@ _rake_refresh () {
}
_rake_does_task_list_need_generating () {
if [ ! -f .rake_tasks ]; then return 0;
else
if [[ "$OSTYPE" = darwin* ]]; then
accurate=$(stat -f%m .rake_tasks)
changed=$(stat -f%m Rakefile)
else
accurate=$(stat -c%Y .rake_tasks)
changed=$(stat -c%Y Rakefile)
fi
return $(expr $accurate '>=' $changed)
fi
[[ ! -f .rake_tasks ]] || [[ Rakefile -nt .rake_tasks ]]
}
_rake_generate () {