diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-30 10:07:23 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-30 10:07:23 -0700 |
| commit | d9028787370ce62baa78818999aaa4030e814cc6 (patch) | |
| tree | 339dc85302533b63af8cdbcd80a32a21b4ad5d36 /home/programs/emacs/site-lisp/init-eshell.el | |
| parent | switch to nginx (diff) | |
| download | infra-d9028787370ce62baa78818999aaa4030e814cc6.tar.gz | |
move eshell configuration to its own file
Diffstat (limited to '')
| -rw-r--r-- | home/programs/emacs/site-lisp/init-eshell.el | 34 |
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 |
