[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
+1 -1
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)"