mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Shell: Disable version detection for ash and dash
This commit is contained in:
2
neofetch
2
neofetch
@@ -500,7 +500,7 @@ get_shell() {
|
|||||||
if [[ "$shell_version" == "on" ]]; then
|
if [[ "$shell_version" == "on" ]]; then
|
||||||
case "${SHELL##*/}" in
|
case "${SHELL##*/}" in
|
||||||
"bash") shell+="${BASH_VERSION/-*}" ;;
|
"bash") shell+="${BASH_VERSION/-*}" ;;
|
||||||
"sh") ;;
|
"sh" | "ash" | "dash") ;;
|
||||||
|
|
||||||
"mksh" | "ksh")
|
"mksh" | "ksh")
|
||||||
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
|
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
|
||||||
|
|||||||
Reference in New Issue
Block a user