blob: 3eb21755c2fa0b023045ce7455171a3189326391 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
;;; init-eshell.el --- configure eshell -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>
;;; Commentary:
;; configure eshell
;;; Code:
(use-package eshell
:commands (eshell eshell-command)
:custom
(eshell-directory-name (emacs-path "eshell"))
(eshell-hist-ignoredups t)
(eshell-history-size 50000)
(eshell-ls-dired-initial-args '("-h"))
(eshell-ls-exclude-regexp "~\\'")
(eshell-ls-initial-args "-h")
(eshell-modules-list
'(eshell-alias
eshell-basic
eshell-cmpl
eshell-dirs
eshell-glob
eshell-hist
eshell-ls
eshell-pred
eshell-prompt
eshell-rebind
eshell-script
eshell-term
eshell-unix
eshell-xtra))
(eshell-prompt-function
(lambda nil
(concat (abbreviate-file-name (eshell/pwd))
(if (= (user-uid) 0)
" # " " $ "))))
(eshell-save-history-on-exit t)
(eshell-stringify-t nil)
(eshell-term-name "ansi")
:preface
(defun eshell-initialize ()
(add-hook 'eshell-expand-input-functions #'eshell-spawn-external-command)
:init
(add-hook 'eshell-first-time-mode-hook #'eshell-initialize)))
(provide 'init-eshell)
;;; init-eshell.el ends here
|