term: Fix macOS issue

This commit is contained in:
Dylan Araps 2018-05-17 20:30:46 +10:00
parent 0f7e7b6ee0
commit bad073d78a
1 changed files with 2 additions and 1 deletions

View File

@ -2789,7 +2789,8 @@ get_term() {
case "${name// }" in
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"* | "kdeinit"*)
"ruby" | "1" | "systemd" | "sshd"* | "python"* |
"USER"*"PID"* | "kdeinit"* | "launchd"*)
break
;;
"gnome-terminal-") term="gnome-terminal" ;;