Per directory history for zsh, as well as global history, and the ability to toggle between them with ^G.