From 844720f85a7cc55c594ab5a9b554ff5beba05076 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Dec 2016 22:27:13 +1100 Subject: [PATCH] Shell: Make all other shells use --version --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 653a6e43..0c130659 100755 --- a/neofetch +++ b/neofetch @@ -502,15 +502,15 @@ get_shell() { case "${SHELL##*/}" in "bash") shell+="${BASH_VERSION/-*}" ;; - "fish" | "zsh" | "tcsh" | "csh" | "ksh" | "xonsh") - shell+="$("$SHELL" --version 2>&1)" - shell="${shell/${SHELL##*/}}" - ;; - "mksh") shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')" shell="${shell/ * KSH}" ;; + + *) + shell+="$("$SHELL" --version 2>&1)" + shell="${shell/${SHELL##*/}}" + ;; esac # Remove unwanted info