From 91825d4bc7852443a52ce796cc9bd4ce2bc0d4fb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Dec 2016 22:02:32 +1100 Subject: [PATCH] Shell: Add support for xonsh --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 51bbb759..653a6e43 100755 --- a/neofetch +++ b/neofetch @@ -502,7 +502,7 @@ get_shell() { case "${SHELL##*/}" in "bash") shell+="${BASH_VERSION/-*}" ;; - "fish" | "zsh" | "tcsh" | "csh" | "ksh") + "fish" | "zsh" | "tcsh" | "csh" | "ksh" | "xonsh") shell+="$("$SHELL" --version 2>&1)" shell="${shell/${SHELL##*/}}" ;; @@ -516,6 +516,7 @@ get_shell() { # Remove unwanted info shell="${shell/, version}" shell="${shell/version * sh/ksh}" + shell="${shell/xonsh\//xonsh }" shell="${shell/options*}" shell="${shell/\(*\)}" fi