Skip to content

Whenever gem Mac (with rubyenv and zsh)

jseraf edited this page Aug 4, 2023 · 2 revisions

ChrpTrckr uses the whenever gem to set up and run cron.

I began using .zsh on a new Mac (M2) and encountered an issue where cron would not run. Apparently, cron on Mac uses .bash regardless of your choice of shell. The following additions to .bash_profile and .bashrc fixed my cron problems.

#.bash_profile eval "$(rbenv init - bash)"

#.bashrc source .bash_profile

Note: I did not have this issue with RVM on a previous machine. ymmv.

Clone this wiki locally