Use on-mac as a bash function to avoid sourcing errors