Skip to content

Instantly share code, notes, and snippets.

@iamjarvo
Forked from mahata/eshell-path-env.el
Created October 23, 2020 05:03
Show Gist options
  • Save iamjarvo/b0ed7e3bf903c3f94948b3867626cd86 to your computer and use it in GitHub Desktop.
Save iamjarvo/b0ed7e3bf903c3f94948b3867626cd86 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment