Find ppid of tmux

This commit is contained in:
Dylan Araps 2016-05-16 22:29:08 +10:00
parent 8032f6ca7a
commit e223b034ef

View file

@ -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
}