Quick and dirty support for zsh. There are probably bugs.