Add eshell alias to cd to project root
This commit is contained in:
parent
d5b3d29181
commit
9d266b10f2
@ -2140,9 +2140,10 @@ A function to properly clear the eshell:
|
|||||||
|
|
||||||
Some aliases:
|
Some aliases:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defvar eshell-aliases
|
(setq eshell-aliases
|
||||||
'(("k" . "kubectl $*")
|
'(("k" . "kubectl $*")
|
||||||
("kctx" . "kubectx $*")))
|
("kctx" . "kubectx $*")
|
||||||
|
("root" . "cd (projectile-project-root)")))
|
||||||
(add-hook
|
(add-hook
|
||||||
'eshell-mode-hook
|
'eshell-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
Loading…
Reference in New Issue
Block a user