about summary refs log tree commit diff
path: root/emacs.d/init-eshell.el
diff options
context:
space:
mode:
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