blob: 8095d901bc57eb4b4fb68780fb1d306a94f6f150 (
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
|
;;; init-eshell.el --- Configure things related to eshell -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>
;;; Commentary:
;; Configure things related to eshell
;;; Code:
(use-package eshell
:commands (eshell eshell-command)
:bind (("C-r" . consult-history))
:custom
(eshell-banner-message "")
(eshell-hist-ignoredups t)
(eshell-history-size 50000)
(eshell-ls-dired-initial-args '("-h"))
(eshell-ls-initial-args "-h")
(eshell-ls-exclude-regexp "~\\'")
(eshell-save-history-on-exit t)
(eshell-stringify-t nil)
(eshell-term-name "ansi")
:config
(require 'em-alias)
(eshell/alias "ls" "eza --group-directories-first $*")
(eshell/alias "la" "eza --group-directories-first -la $*")
(eshell/alias "ll" "eza --group-directories-first -la -L=1 $*")
(eshell/alias "lt" "eza --group-directories-first -aT -L=2 $*")
(eshell/alias "g" "magit")
(eshell/alias "d" "dired $1"))
(provide 'init-eshell)
;;; init-eshell.el ends here
|