Saving before zsh transitions