Find ppid of tmux
This commit is contained in:
parent
8032f6ca7a
commit
e223b034ef
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