mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Remove all whitespace from terminal name
This commit is contained in:
2
neofetch
2
neofetch
@@ -1765,7 +1765,7 @@ getterm () {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$name" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
|
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
|
||||||
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
|
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
|
||||||
*) term="$name" ;;
|
*) term="$name" ;;
|
||||||
|
Reference in New Issue
Block a user