From b16ff8bc4df77f3117bc4f8be7a2c10c405bac23 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 17 May 2018 20:43:22 +1000 Subject: [PATCH] term: Fix tmux issue. --- neofetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 2918aefe..d0bc8a95 100755 --- a/neofetch +++ b/neofetch @@ -2787,15 +2787,16 @@ get_term() { [[ -z "$parent" ]] && break name="$(get_process_name "$parent")" case "${name// }" in - "${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;; + "${SHELL/*\/}" | *"sh" | "screen" | "su"*) ;; "login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;; - "ruby" | "1" | "systemd" | "sshd"* | "python"* | + "ruby" | "1" | "systemd" | "sshd"* | "python"* |\ "USER"*"PID"* | "kdeinit"* | "launchd"*) break ;; "gnome-terminal-") term="gnome-terminal" ;; *"nvim") term="Neovim Terminal" ;; *"NeoVimServer"*) term="VimR Terminal" ;; + *"tmux"*) term="tmux" ;; *) term="${name##*/}" ;; esac fi