Fix eshell-z

This commit is contained in:
Henrik Lissner 2018-06-28 19:23:31 +02:00
parent 9157d3b3a6
commit 40c8d7bd0e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -20,7 +20,6 @@ buffer.")
(defvar +eshell-aliases
'(("q" "exit") ; built-in
("z" "eshell-z $1") ; `eshell-z'
("bd" "eshell-up $1") ; `eshell-up'
("rg" "rg --color=always")
("ag" "ag --color=always")
@ -146,7 +145,10 @@ redefines its keys every time `eshell-mode' is enabled."
:commands shrink-path-file)
(after! eshell-z
(def-package! eshell-z
:after eshell
:config
;; 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))))
(setq eshell-z-freq-dir-hash-table-file-name
(expand-file-name "z" eshell-directory-name))))