term: Add support for tty
This commit is contained in:
parent
fd30321120
commit
5a99cb5237
1
neofetch
1
neofetch
|
@ -1767,6 +1767,7 @@ getterm () {
|
||||||
|
|
||||||
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/*\/} ;;
|
||||||
*) term="$name" ;;
|
*) term="$name" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue