Shell: Simplify bash version
This commit is contained in:
parent
6a3e5e3f22
commit
17406f24f5
1 changed files with 1 additions and 3 deletions
4
neofetch
4
neofetch
|
@ -490,9 +490,7 @@ get_shell() {
|
|||
shell+=" "
|
||||
case "${SHELL##*/}" in
|
||||
"bash")
|
||||
shell+="$(bash --version)"
|
||||
shell="${shell/ *, version}"
|
||||
shell="${shell/$'\n'*}"
|
||||
shell+=" ${BASH_VERSION/-*}"
|
||||
;;
|
||||
|
||||
"zsh")
|
||||
|
|
Loading…
Reference in a new issue