mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add z and bd commands to eshell, plus aliases
This commit is contained in:
@ -37,6 +37,11 @@
|
|||||||
(add-hook 'eshell-mode-hook #'+eshell|init)
|
(add-hook 'eshell-mode-hook #'+eshell|init)
|
||||||
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
||||||
|
|
||||||
|
(after! em-alias
|
||||||
|
;; Emulates popular shell utilities
|
||||||
|
(map-put eshell-command-aliases-list "z" '("cd =$1"))
|
||||||
|
(map-put eshell-command-aliases-list "bd" '("eshell-up $1")))
|
||||||
|
|
||||||
(after! em-term
|
(after! em-term
|
||||||
;; Visual commands require a proper terminal. Eshell can't handle that, so
|
;; Visual commands require a proper terminal. Eshell can't handle that, so
|
||||||
;; it delegates these commands to a term buffer.
|
;; it delegates these commands to a term buffer.
|
||||||
@ -76,3 +81,6 @@ redefines its keys every time `eshell-mode' is enabled."
|
|||||||
[remap evil-window-vsplit] #'+eshell/split-right))
|
[remap evil-window-vsplit] #'+eshell/split-right))
|
||||||
(add-hook 'eshell-first-time-mode-hook #'+eshell|init-keymap))
|
(add-hook 'eshell-first-time-mode-hook #'+eshell|init-keymap))
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! eshell-up
|
||||||
|
:commands (eshell-up eshell-up-peek))
|
||||||
|
4
modules/emacs/eshell/packages.el
Normal file
4
modules/emacs/eshell/packages.el
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; emacs/eshell/packages.el
|
||||||
|
|
||||||
|
(package! eshell-up)
|
Reference in New Issue
Block a user