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)
 | 
					(defvar home-dir)
 | 
				
			||||||
(setq home-dir (expand-file-name "~"))
 | 
					(setq home-dir (expand-file-name "~"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(setq eshell-path-env (concat
 | 
					(defun eshell-mode-hook-setup ()
 | 
				
			||||||
		       "/usr/local/bin:"
 | 
					  "Sets up EShell when it is loaded"
 | 
				
			||||||
		       (concat home-dir "/bin:")
 | 
					
 | 
				
			||||||
		       eshell-path-env))
 | 
					  (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
 | 
					;; Prompt configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue