Find ppid of tmux
This commit is contained in:
parent
8032f6ca7a
commit
e223b034ef
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1742,7 +1742,7 @@ getterm () {
|
|||
name="$(ps -p $parent -o comm=)"
|
||||
|
||||
case "$name" in
|
||||
"${SHELL/*\/}" | *"sh") getterm "$parent" ;;
|
||||
"${SHELL/*\/}" | *"sh" | "tmux") getterm "$parent" ;;
|
||||
*) term="$name" ;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue