X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=setup%2Feshell.el;h=3a72ff0579cb2783977945b6faabc9ff56052cfa;hb=a13a166794e1e6f22407e13110fe83b9cb095ab8;hp=1f836aca0a39128b82db2cc92e8a3677195eaf85;hpb=844f5833be3c5f0d48e1b3b900c592841f0516d6;p=emacs-init.git diff --git a/setup/eshell.el b/setup/eshell.el index 1f836ac..3a72ff0 100644 --- a/setup/eshell.el +++ b/setup/eshell.el @@ -16,10 +16,15 @@ (eshell-buffer (get-buffer "*eshell*"))) (if (not eshell-buffer) (error "no *eshell* buffer found")) - (pop-to-buffer (get-buffer "*eshell*")) + (my-pop-to-buffer (get-buffer "*eshell*")) (goto-char (point-max)) (setq default-directory dir) - (insert "\n") - (eshell-send-input))) + (eshell-interrupt-process))) (global-set-key "\C-cE" 'eshell-switch-directory-current-buffer) + +(setenv "PATH" (concat (getenv "PATH") + ":" + (expand-file-name "~/bin") + ":" + (expand-file-name "~/.local/bin")))