[PR] #2 coloursofnoise - Fix terminal emulator detection

Fix terminal emulator detection
This commit is contained in:
Hykilpikonna 2022-04-25 03:21:51 -04:00 committed by GitHub
commit 7f949fe6b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3315,7 +3315,7 @@ get_term() {
name="$(get_process_name "$parent")"
case ${name// } in
"${SHELL/*\/}"|*"sh"|"screen"|"su"*|"newgrp") ;;
"${SHELL/*\/}"|*"sh"|"screen"|"su"*|"newgrp"|"hyfetch") ;;
"login"*|*"Login"*|"init"|"(init)")
term="$(tty)"