Skip to content

Instantly share code, notes, and snippets.

@nhunzaker
Last active December 10, 2015 19:18
Show Gist options
  • Save nhunzaker/4480113 to your computer and use it in GitHub Desktop.
Save nhunzaker/4480113 to your computer and use it in GitHub Desktop.
Export .zshrc paths into Emacs
;; Load .zshrc (of course I am very interested in a better method)
(let ((path (shell-command-to-string ". ~/.zshrc; echo -n $PATH")))
(setenv "PATH" path)
(setq exec-path
(append
(split-string-and-unquote path ":")
exec-path)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment