From 4b0cf233a86e150766cf6f45d18045a3e71a29d7 Mon Sep 17 00:00:00 2001 From: Takeya Yuki Date: Sat, 20 May 2017 14:56:27 +0900 Subject: [PATCH] Remove PID Check --- neofetch | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/neofetch b/neofetch index ce553deb..0fada33c 100755 --- a/neofetch +++ b/neofetch @@ -1640,12 +1640,7 @@ get_term() { esac # Check $PPID for terminal emulator. - while [[ -z "$term" ]]; do - parent="$(get_ppid "$parent")" - if [ "$parent" -lt 2 ]; then - parent=1 - term="kernel shell on $(tty)" - fi + while [[ -z "$term" ]] || ((parent > 1)); do name="$(get_process_name "$parent")"