From c7c56078b8c68d3e0d481c50a804bafc1159e1f4 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 5 Apr 2021 10:46:20 -0400 Subject: [PATCH] Add k9s command --- emacs/.emacs.d/config/init-kubernetes.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/.emacs.d/config/init-kubernetes.el b/emacs/.emacs.d/config/init-kubernetes.el index 29d4951..7741b05 100644 --- a/emacs/.emacs.d/config/init-kubernetes.el +++ b/emacs/.emacs.d/config/init-kubernetes.el @@ -50,4 +50,12 @@ kubectl-deployments kubectl-statefulsets)) +(when (executable-find "k9s") + (defun k9s () + (interactive) + (let ((k9s-buf (vterm "*k9s*"))) + (switch-to-buffer k9s-buf) + (vterm-send-string (executable-find "k9s")) + (vterm-send-return)))) + (provide 'init-kubernetes)