Term: better handling of tmux

This commit is contained in:
Dylan Araps 2016-10-03 17:20:20 +11:00
parent bc9e10c51e
commit 22ae5a5bba
1 changed files with 1 additions and 1 deletions

View File

@ -1554,7 +1554,7 @@ getterm() {
esac esac
case "${name// }" in case "${name// }" in
"${SHELL/*\/}" | *"sh" | "tmux" | "screen") getterm "$parent" ;; "${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;;
"login" | "init") term="$(tty)"; term="${term/*\/}" ;; "login" | "init") term="$(tty)"; term="${term/*\/}" ;;
"ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;; "ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;;
"gnome-terminal-") term="gnome-terminal" ;; "gnome-terminal-") term="gnome-terminal" ;;