From e7938ea4c300b15fd614bd997fcbcbc1e36ead2a Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:20:45 -0700 Subject: [PATCH] [+] More editor support --- neofetch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3f49ecbf..fe45664e 100755 --- a/neofetch +++ b/neofetch @@ -2294,9 +2294,15 @@ get_editor() { # Obtain editor version case ${editor_name:=${editor_full_path##*/}} in - nano|vim|micro) + nano|vim|micro|emacs) editor_v=$("$editor_full_path" --version 2>&1) ;; + kak) + editor_v=$("$editor_full_path" -version 2>&1) + ;; + ne) + editor_v=$("$editor_full_path" -h 2>&1) + ;; esac editor_v="${editor_v/$'\n'*}" editor_v="${editor_v/Version: }"