Commit 6e8ff7b5 authored by Dylan Araps's avatar Dylan Araps

Term: Find parent of 'su'

parent 628b1d84
......@@ -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" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment