about summary refs log tree commit diff
path: root/emacs.d/init-eshell.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-28T16·02+0200
committerVincent Ambo <vincent@spotify.com>2013-07-28T16·02+0200
commit488a5c4956ea5789528b48d5a8dd97c9c8f3e701 (patch)
tree36382475d27ce3f12c25ed30fd00ac08e422bbb0 /emacs.d/init-eshell.el
parent2f8813385805b7091b3a5c95a30a2985046424d1 (diff)
Emacs: Enabling some more visual commands in EShell, set EShell config directory to ~/.config/eshell (similar to the fish dir)
Diffstat (limited to 'emacs.d/init-eshell.el')
-rw-r--r--emacs.d/init-eshell.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs.d/init-eshell.el b/emacs.d/init-eshell.el
index 2fd2ed9422f8..18543f80a7a0 100644
--- a/emacs.d/init-eshell.el
+++ b/emacs.d/init-eshell.el
@@ -66,6 +66,21 @@
 (setq eshell-highlight-prompt nil)
 (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