Don't report terminal as tmux

This commit is contained in:
GaugeK committed 2020-08-21 14:01:36 +10:00
1 parent 1f0adf29de
commit e377e92ee2
1 file changed
+1 -1
+1 -1
View File
@@ -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|screen) ;; # skip shells
*[Ll]ogin*|*init*) break;; # exit when the top is reached
*) term="$name" # anything else can be assumed to be the terminal
esac