Shell: Add support for xonsh
This commit is contained in:
parent
cd9b9bb00b
commit
91825d4bc7
3
neofetch
3
neofetch
|
@ -502,7 +502,7 @@ get_shell() {
|
||||||
case "${SHELL##*/}" in
|
case "${SHELL##*/}" in
|
||||||
"bash") shell+="${BASH_VERSION/-*}" ;;
|
"bash") shell+="${BASH_VERSION/-*}" ;;
|
||||||
|
|
||||||
"fish" | "zsh" | "tcsh" | "csh" | "ksh")
|
"fish" | "zsh" | "tcsh" | "csh" | "ksh" | "xonsh")
|
||||||
shell+="$("$SHELL" --version 2>&1)"
|
shell+="$("$SHELL" --version 2>&1)"
|
||||||
shell="${shell/${SHELL##*/}}"
|
shell="${shell/${SHELL##*/}}"
|
||||||
;;
|
;;
|
||||||
|
@ -516,6 +516,7 @@ get_shell() {
|
||||||
# Remove unwanted info
|
# Remove unwanted info
|
||||||
shell="${shell/, version}"
|
shell="${shell/, version}"
|
||||||
shell="${shell/version * sh/ksh}"
|
shell="${shell/version * sh/ksh}"
|
||||||
|
shell="${shell/xonsh\//xonsh }"
|
||||||
shell="${shell/options*}"
|
shell="${shell/options*}"
|
||||||
shell="${shell/\(*\)}"
|
shell="${shell/\(*\)}"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue