Fix rc.d/tmux for cases where there is tmux process belongings to other users
This commit is contained in:
parent
d6cd5be515
commit
7362c36ab8
@ -3,7 +3,7 @@
|
|||||||
# GNU Screen stuff
|
# GNU Screen stuff
|
||||||
if ( which tmux &> /dev/null )
|
if ( which tmux &> /dev/null )
|
||||||
then
|
then
|
||||||
if [ $(pgrep "tmux" | wc -l) -gt 0 ]
|
if [ $(pgrep -u "$UID" "tmux" | wc -l) -gt 0 ]
|
||||||
then
|
then
|
||||||
if [[ $TERM != screen* ]]
|
if [[ $TERM != screen* ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user