Skip to content

Instantly share code, notes, and snippets.

@chopmo
Created May 23, 2010 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chopmo/410752 to your computer and use it in GitHub Desktop.
Save chopmo/410752 to your computer and use it in GitHub Desktop.
(defun read-system-path ()
(with-temp-buffer
(insert-file-contents "/etc/paths")
(goto-char (point-min))
(replace-regexp "\n" ":")
(thing-at-point 'line)))
(setenv "PATH" (read-system-path))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment