If the parent process is python, exit the function
This commit is contained in:
parent
c1450f8288
commit
c5b88c68a9
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue