From 4120ad49404f5d916653ba4862d702e73d4473d2 Mon Sep 17 00:00:00 2001 From: Mitch Weaver <20451170+MitchWeaver@users.noreply.github.com> Date: Thu, 25 Jul 2019 23:40:59 -0500 Subject: [PATCH] support other versions of ksh --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4eb6db0b..6d53d1ce 100755 --- a/neofetch +++ b/neofetch @@ -1460,7 +1460,7 @@ get_shell() { "bash") shell+="${BASH_VERSION/-*}" ;; "sh" | "ash" | "dash") ;; - "mksh" | "ksh") + *"ksh") shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")" shell="${shell/ * KSH}" shell="${shell/version}"