emacs: Fixed EShell path
This commit is contained in:
parent
818b2eb2d5
commit
2e9b4cf111
1 changed files with 11 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue