Remove all whitespace from terminal name
This commit is contained in:
parent
5a99cb5237
commit
f2eb877bae
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