mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Term: Find parent of 'su'
This commit is contained in:
2
neofetch
2
neofetch
@@ -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" ;;
|
||||
|
Reference in New Issue
Block a user