mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Terminal detection, add screen support:
This commit is contained in:
2
neofetch
2
neofetch
@@ -1752,7 +1752,7 @@ getterm () {
|
|||||||
name="$(ps -p $parent -o comm=)"
|
name="$(ps -p $parent -o comm=)"
|
||||||
|
|
||||||
case "$name" in
|
case "$name" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux" | "systemd") getterm "$parent" ;;
|
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
|
||||||
*) term="$name" ;;
|
*) term="$name" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user