From 9d266b10f2f5e04ef7d4fb04c6ad8af46ddaa3a4 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 7 Feb 2020 10:29:48 -0500 Subject: [PATCH] Add eshell alias to cd to project root --- emacs/init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 26dbb7c..ae6286e 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2140,9 +2140,10 @@ A function to properly clear the eshell: Some aliases: #+BEGIN_SRC emacs-lisp - (defvar eshell-aliases + (setq eshell-aliases '(("k" . "kubectl $*") - ("kctx" . "kubectx $*"))) + ("kctx" . "kubectx $*") + ("root" . "cd (projectile-project-root)"))) (add-hook 'eshell-mode-hook (lambda ()