aboutsummaryrefslogtreecommitdiff
path: root/home/programs/emacs/site-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'home/programs/emacs/site-lisp')
-rw-r--r--home/programs/emacs/site-lisp/init-eshell.el34
1 files changed, 34 insertions, 0 deletions
diff --git a/home/programs/emacs/site-lisp/init-eshell.el b/home/programs/emacs/site-lisp/init-eshell.el
new file mode 100644
index 0000000..8095d90
--- /dev/null
+++ b/home/programs/emacs/site-lisp/init-eshell.el
@@ -0,0 +1,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