support other versions of ksh
This commit is contained in:
parent
b886122af9
commit
4120ad4940
2
neofetch
2
neofetch
|
@ -1460,7 +1460,7 @@ get_shell() {
|
||||||
"bash") shell+="${BASH_VERSION/-*}" ;;
|
"bash") shell+="${BASH_VERSION/-*}" ;;
|
||||||
"sh" | "ash" | "dash") ;;
|
"sh" | "ash" | "dash") ;;
|
||||||
|
|
||||||
"mksh" | "ksh")
|
*"ksh")
|
||||||
shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
|
shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
|
||||||
shell="${shell/ * KSH}"
|
shell="${shell/ * KSH}"
|
||||||
shell="${shell/version}"
|
shell="${shell/version}"
|
||||||
|
|
Reference in New Issue