neofetch: Fix yash shell. Closes #1421

This commit is contained in:
Dylan Araps 2020-03-06 21:49:26 +02:00
parent ede5c1ee29
commit f372d71628
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 7 additions and 0 deletions

View File

@ -1594,6 +1594,13 @@ get_shell() {
shell+=$("$SHELL" -c "printf %s \$tcsh")
;;
yash)
shell+=$("$SHELL" --version 2>&1)
shell=${shell/ $shell_name}
shell=${shell/ Yet another shell }
shell=${shell/ Copyright*}
;;
*)
shell+=$("$SHELL" --version 2>&1)
shell=${shell/ $shell_name}