Basic zshell in emacs

I found a great post on Mastering Emacs that covers the basics of running shells in emacs. Included in this post is the small bit of magic I needed to get zshell working. It’s not full or perfect, but at least the environment is set up correctly. This allows me to test and compile code without leaving my emacs window.

(setq explicit-shell-file-name "/usr/local/bin/zsh")
(setq shell-file-name "zsh")
(setenv "SHELL" shell-file-name)