Add eshell-z plugin

And replace z alias with it.
This commit is contained in:
Henrik Lissner 2018-06-28 18:31:46 +02:00
parent ca9da4c272
commit 88ba758ae3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 1 deletions

View file

@ -23,7 +23,7 @@ buffer.")
(defvar +eshell-aliases
'(("q" "exit") ; built-in
("z" "cd =$1") ; built-in
("z" "eshell-z $1") ; `eshell-z'
("bd" "eshell-up $1") ; `eshell-up'
("rg" "rg --color=always")
("ag" "ag --color=always")
@ -137,3 +137,9 @@ redefines its keys every time `eshell-mode' is enabled."
(def-package! shrink-path
:commands shrink-path-file)
(after! eshell-z
;; Use zsh's db if it exists, otherwise, store it in `doom-cache-dir'
(unless (file-exists-p eshell-z-freq-dir-hash-table-file-name)
(setq eshell-z-freq-dir-hash-table-file-name (expand-file-name "z" eshell-directory-name))))

View file

@ -2,4 +2,5 @@
;;; emacs/eshell/packages.el
(package! eshell-up)
(package! eshell-z)
(package! shrink-path)