From 0a43ea82f3f6aab15e6b13dc29eeb65391c4d256 Mon Sep 17 00:00:00 2001 From: GaugeK Date: Fri, 21 Aug 2020 14:01:36 +1000 Subject: [PATCH] Don't report terminal as tmux --- fet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet.sh b/fet.sh index b880d3d..df6efb4 100755 --- a/fet.sh +++ b/fet.sh @@ -33,7 +33,7 @@ if [ -e /proc/$$/comm ]; then # get name of binary read -r name < "/proc/$ppid/comm" case $name in - *sh|"${0##*/}") ;; # skip shells + *sh|"${0##*/}"|tmux*) ;; # skip shells *[Ll]ogin*|*init*) break;; # exit when the top is reached *) term="$name" # anything else can be assumed to be the terminal esac