term: Fix tmux issue.
This commit is contained in:
parent
bad073d78a
commit
b16ff8bc4d
5
neofetch
5
neofetch
|
@ -2787,15 +2787,16 @@ get_term() {
|
||||||
[[ -z "$parent" ]] && break
|
[[ -z "$parent" ]] && break
|
||||||
name="$(get_process_name "$parent")"
|
name="$(get_process_name "$parent")"
|
||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
|
"${SHELL/*\/}" | *"sh" | "screen" | "su"*) ;;
|
||||||
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
|
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
|
||||||
"ruby" | "1" | "systemd" | "sshd"* | "python"* |
|
"ruby" | "1" | "systemd" | "sshd"* | "python"* |\
|
||||||
"USER"*"PID"* | "kdeinit"* | "launchd"*)
|
"USER"*"PID"* | "kdeinit"* | "launchd"*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
*"nvim") term="Neovim Terminal" ;;
|
*"nvim") term="Neovim Terminal" ;;
|
||||||
*"NeoVimServer"*) term="VimR Terminal" ;;
|
*"NeoVimServer"*) term="VimR Terminal" ;;
|
||||||
|
*"tmux"*) term="tmux" ;;
|
||||||
*) term="${name##*/}" ;;
|
*) term="${name##*/}" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue