mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 18:37:12 +00:00
If the parent process is python, exit the function
This commit is contained in:
2
neofetch
2
neofetch
@@ -1770,7 +1770,7 @@ getterm () {
|
|||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux" | "screen") getterm "$parent" ;;
|
"${SHELL/*\/}" | *"sh" | "tmux" | "screen") getterm "$parent" ;;
|
||||||
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
|
"login" | "init") term="$(tty)"; term=${term/*\/} ;;
|
||||||
"ruby" | "1" | "systemd" | "sshd") unset term ;;
|
"ruby" | "1" | "systemd" | "sshd" | "python"*) unset term ;;
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
*) term="$name" ;;
|
*) term="$name" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user