Append to bash history, update mac env