Skip to content

Instantly share code, notes, and snippets.

View chopmo's full-sized avatar

Jacob Tjoernholm chopmo

View GitHub Profile
(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))