Find ppid of tmux

This commit is contained in:
Dylan Araps 2016-05-16 22:29:08 +10:00
parent 8032f6ca7a
commit e223b034ef
1 changed files with 1 additions and 1 deletions

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
}