Term: Find parent of 'su'

This commit is contained in:
Dylan Araps 2016-11-25 18:54:19 +11:00
parent 628b1d8416
commit 6e8ff7b59f

View file

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