Teach eshell to open k8s execs in a visual shell

This commit is contained in:
Jeremy Dormitzer 2020-07-21 09:42:27 -04:00
parent 2d4f8491f2
commit 2e75c083b3

View File

@ -2647,7 +2647,9 @@ Visual programs:
#+BEGIN_SRC emacs-lisp
(defun eshell-setup ()
(add-to-list 'eshell-visual-commands "crawl")
(add-to-list 'eshell-visual-commands "ssh"))
(add-to-list 'eshell-visual-commands "ssh")
(add-to-list 'eshell-visual-subcommands '("kubectl" "exec"))
(add-to-list 'eshell-visual-subcommands '("k" "exec")))
(add-hook 'eshell-mode-hook #'eshell-setup)
#+END_SRC