adapt shell to mac