From 17406f24f54184016fc9489d8bf697ce4e4306f8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 11 Nov 2016 15:42:11 +1100 Subject: [PATCH] Shell: Simplify bash version --- neofetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neofetch b/neofetch index a5526f8e..e81fced3 100755 --- a/neofetch +++ b/neofetch @@ -490,9 +490,7 @@ get_shell() { shell+=" " case "${SHELL##*/}" in "bash") - shell+="$(bash --version)" - shell="${shell/ *, version}" - shell="${shell/$'\n'*}" + shell+=" ${BASH_VERSION/-*}" ;; "zsh")