Add z and bd commands to eshell, plus aliases

This commit is contained in:
Henrik Lissner 2018-06-16 16:38:39 +02:00
parent c0f601721c
commit aa1b203d1f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 12 additions and 0 deletions

View file

@ -37,6 +37,11 @@
(add-hook 'eshell-mode-hook #'+eshell|init)
(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
;; Visual commands require a proper terminal. Eshell can't handle that, so
;; 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))
(add-hook 'eshell-first-time-mode-hook #'+eshell|init-keymap))
(def-package! eshell-up
:commands (eshell-up eshell-up-peek))

View file

@ -0,0 +1,4 @@
;; -*- no-byte-compile: t; -*-
;;; emacs/eshell/packages.el
(package! eshell-up)