mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
Add BSD shells to shell_version
This commit is contained in:
10
fetch
10
fetch
@@ -635,10 +635,16 @@ getshell () {
|
||||
shell=${shell/ zsh}
|
||||
;;
|
||||
|
||||
*"mksh"*)
|
||||
shell+="$(mksh -c 'printf "%s" "$KSH_VERSION"')"
|
||||
*"mksh"* | *"ksh")
|
||||
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
|
||||
shell=${shell/ * KSH}
|
||||
;;
|
||||
|
||||
*"tcsh"* | *"csh"*)
|
||||
shell+="$("$SHELL" --version)"
|
||||
shell=${shell/tcsh}
|
||||
shell=${shell/\(*}
|
||||
;;
|
||||
esac
|
||||
|
||||
shell="${shell/\(*\)}"
|
||||
|
||||
Reference in New Issue
Block a user