emacs: Fixed EShell path

This commit is contained in:
Vincent Ambo 2013-07-22 11:43:48 +02:00
parent 818b2eb2d5
commit 2e9b4cf111

View file

@ -5,11 +5,18 @@
(defvar home-dir)
(setq home-dir (expand-file-name "~"))
(setq eshell-path-env (concat
(defun eshell-mode-hook-setup ()
"Sets up EShell when it is loaded"
(setq eshell-path-env (concat
"/usr/local/bin:"
(concat home-dir "/bin:")
eshell-path-env))
(setenv "PATH" eshell-path-env))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-setup)
;; Prompt configuration
(defun clean-pwd (path)