Remove faulty tmux support

Tmux's PPid is the 1, so skipping that makes the term your init
This commit is contained in:
GaugeK
2020-08-22 04:14:55 +10:00
parent c158f06c4d
commit f139798f16
+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##*/}"|tmux*) ;; # skip shells
*sh|"${0##*/}") ;; # skip shells
*[Ll]ogin*|*init*) break;; # exit when the top is reached
*) term="$name" # anything else can be assumed to be the terminal
esac