term: Fix macOS issue

This commit is contained in:
Dylan Araps 2018-05-17 20:30:46 +10:00
parent 0f7e7b6ee0
commit bad073d78a

View file

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