Fix rc.d/tmux for cases where there is tmux process belongings to other users

This commit is contained in:
Xavier Logerais 2018-12-10 13:41:18 +01:00
parent d6cd5be515
commit 7362c36ab8

View File

@ -3,7 +3,7 @@
# GNU Screen stuff
if ( which tmux &> /dev/null )
then
if [ $(pgrep "tmux" | wc -l) -gt 0 ]
if [ $(pgrep -u "$UID" "tmux" | wc -l) -gt 0 ]
then
if [[ $TERM != screen* ]]
then