Commit 91825d4b authored by Dylan Araps's avatar Dylan Araps

Shell: Add support for xonsh

parent cd9b9bb0
...@@ -502,7 +502,7 @@ get_shell() { ...@@ -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() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment