Term: Find parent of 'su'
This commit is contained in:
parent
628b1d8416
commit
6e8ff7b59f
2
neofetch
2
neofetch
|
@ -1496,7 +1496,7 @@ get_term() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen") get_term "$parent" ;;
|
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su") get_term "$parent" ;;
|
||||||
"login"* | *"Login"* | "init") term="$(tty)" ;;
|
"login"* | *"Login"* | "init") term="$(tty)" ;;
|
||||||
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term ;;
|
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term ;;
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
|
|
Reference in New Issue