If the parent process is python, exit the function

This commit is contained in:
Dylan Araps 2016-06-03 18:08:19 +10:00
parent c1450f8288
commit c5b88c68a9
No known key found for this signature in database
GPG key ID: B69EE98D4CF5133A

View file

@ -1770,7 +1770,7 @@ getterm () {
case "${name// }" in
"${SHELL/*\/}" | *"sh" | "tmux" | "screen") getterm "$parent" ;;
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
"ruby" | "1" | "systemd" | "sshd") unset term ;;
"ruby" | "1" | "systemd" | "sshd" | "python"*) unset term ;;
"gnome-terminal-") term="gnome-terminal" ;;
*) term="$name" ;;
esac