From 75a7db65c13159c25ff82020ce7913cf44b989ce Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Wed, 4 Jan 2023 20:44:57 -0800 Subject: [PATCH] Fix the eshell start --- ha-eshell.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ha-eshell.org b/ha-eshell.org index ace623d..82e2cc8 100644 --- a/ha-eshell.org +++ b/ha-eshell.org @@ -1084,8 +1084,9 @@ This function simply calls [[help-org-capture][org-capture]] with [[info:org#Tem #+end_src And finally, add our new functions to [[elisp(describe-variable 'eshell-virtual-targets)][eshell-virtual-targets]]: #+begin_src emacs-lisp - (add-to-list 'eshell-virtual-targets '("/dev/e" ha-eshell-target-engineering-notebook nil)) - (add-to-list 'eshell-virtual-targets '("/dev/c" ha-eshell-target-engineering-notebook nil)) + (with-eval-after-load "eshell" + (add-to-list 'eshell-virtual-targets '("/dev/e" ha-eshell-target-engineering-notebook nil)) + (add-to-list 'eshell-virtual-targets '("/dev/c" ha-eshell-target-engineering-notebook nil))) #+end_src * Special Prompt Following [[http://blog.liangzan.net/blog/2012/12/12/customizing-your-emacs-eshell-prompt/][these instructions]], we build a better prompt with the Git branch in it (Of course, it matches my Bash prompt). First, we need a function that returns a string with the Git branch in it, e.g. ":master"