emacs: Fixed EShell path
This commit is contained in:
		
							parent
							
								
									818b2eb2d5
								
							
						
					
					
						commit
						2e9b4cf111
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -5,10 +5,17 @@
 | 
			
		|||
(defvar home-dir)
 | 
			
		||||
(setq home-dir (expand-file-name "~"))
 | 
			
		||||
 | 
			
		||||
(setq eshell-path-env (concat
 | 
			
		||||
		       "/usr/local/bin:"
 | 
			
		||||
		       (concat home-dir "/bin:")
 | 
			
		||||
		       eshell-path-env))
 | 
			
		||||
(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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue