* do not use sudo for attach tmux session on logged in non-privileged users

This commit is contained in:
2024-04-04 18:09:25 +03:00
parent bb39260a93
commit eaf3ef3806

View File

@ -80,5 +80,5 @@ export LANG=ru_RU.UTF-8
# auto into tmux session # auto into tmux session
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
sudo tmux attach || sudo tmux tmux attach || tmux
fi fi