Fix bug for having my compile commands go to eshell
Now that EAT can handle the weird `docker` and `ansible-playbook` commands that I do.
This commit is contained in:
parent
0f55a368c5
commit
4718aba6ed
1 changed files with 8 additions and 2 deletions
|
@ -481,9 +481,15 @@ And what about sending the command to Eshell as well?
|
|||
#+begin_src emacs-lisp
|
||||
(defvar rx-compile-to-eshell (rx "|" (0+ space) "s" (0+ space) line-end))
|
||||
|
||||
(defun ha-compile-eshell (full-command)
|
||||
(defun ha-compile-eshell (full-command &optional project-dir)
|
||||
"Send a command to the currently running Eshell terminal.
|
||||
If a terminal isn't running, it will be started, allowing follow-up
|
||||
commands."
|
||||
(unless project-dir
|
||||
(setq project-dir (projectile-project-name)))
|
||||
|
||||
(let ((command (replace-regexp-in-string rx-compile-to-eshell "" full-command)))
|
||||
(ha-shell-send command project-dir)))
|
||||
(ha-eshell-send command project-dir)))
|
||||
#+end_src
|
||||
And let’s add it to the Project leader:
|
||||
#+begin_src emacs-lisp
|
||||
|
|
Loading…
Reference in a new issue