mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-03 14:12:09 +00:00
Find ppid of tmux
This commit is contained in:
2
neofetch
2
neofetch
@@ -1742,7 +1742,7 @@ getterm () {
|
|||||||
name="$(ps -p $parent -o comm=)"
|
name="$(ps -p $parent -o comm=)"
|
||||||
|
|
||||||
case "$name" in
|
case "$name" in
|
||||||
"${SHELL/*\/}" | *"sh") getterm "$parent" ;;
|
"${SHELL/*\/}" | *"sh" | "tmux") getterm "$parent" ;;
|
||||||
*) term="$name" ;;
|
*) term="$name" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user