Closed eatradish closed 1 month ago
The TMUX environment variable is not passed with sudo (if running sudo without -E), and detecting if the value of the $TERM variable is prefixed with tmux will make it possible to detect whether or not the sudo environment is tmux .
TMUX
sudo
-E
$TERM
tmux
Thank you for your contribution!
I released v0.5.2.
The
TMUX
environment variable is not passed withsudo
(if runningsudo
without-E
), and detecting if the value of the$TERM
variable is prefixed withtmux
will make it possible to detect whether or not thesudo
environment istmux
.