Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
eshell-path-env and PATH
(defun eshell-mode-hook-func ()
(setq eshell-path-env (concat "/usr/local/bin:" eshell-path-env))
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
(define-key eshell-mode-map (kbd "M-s") 'other-window-or-split))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-func)
@jtmoulia

This comment has been minimized.

Copy link

commented Jun 12, 2014

Nice, exactly what I was looking for. Thanks!

@skitapa

This comment has been minimized.

Copy link

commented May 19, 2015

Thanks! 😄

Constructive critique:

  • A small description of what this does would be great for those that don't read elisp.
  • Adding the paths for root user would be nice
@Kirth

This comment has been minimized.

Copy link

commented May 23, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.