Emacs: Enabling some more visual commands in EShell, set EShell config directory to ~/.config/eshell (similar to the fish dir)
This commit is contained in:
parent
2f88133858
commit
488a5c4956
1 changed files with 15 additions and 0 deletions
|
@ -66,6 +66,21 @@
|
||||||
(setq eshell-highlight-prompt nil)
|
(setq eshell-highlight-prompt nil)
|
||||||
(setq eshell-prompt-regexp "^.+? \\((\\(git\\|svn\\|hg\\|darcs\\|cvs\\|bzr\\):.+?) \\)?[$#] ")
|
(setq eshell-prompt-regexp "^.+? \\((\\(git\\|svn\\|hg\\|darcs\\|cvs\\|bzr\\):.+?) \\)?[$#] ")
|
||||||
|
|
||||||
|
;; Ignore version control folders in autocompletion
|
||||||
|
(setq eshell-cmpl-cycle-completions nil
|
||||||
|
eshell-save-history-on-exit t
|
||||||
|
eshell-cmpl-dir-ignore "\\`\\(\\.\\.?\\|CVS\\|\\.svn\\|\\.git\\)/\\'")
|
||||||
|
|
||||||
|
;; Load some EShell extensions
|
||||||
|
(eval-after-load 'esh-opt
|
||||||
|
'(progn
|
||||||
|
(require 'em-term)
|
||||||
|
(require 'em-cmpl)
|
||||||
|
;; More visual commands!
|
||||||
|
(add-to-list 'eshell-visual-commands "ssh")
|
||||||
|
(add-to-list 'eshell-visual-commands "tail")))
|
||||||
|
|
||||||
|
(setq eshell-directory-name "~/.config/eshell/")
|
||||||
|
|
||||||
;; EShell functions that come in handy
|
;; EShell functions that come in handy
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue