Browse Source

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

master
dimti 9 months ago
parent
commit
eaf3ef3806
  1. 2
      .bashrc

2
.bashrc

@ -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
Loading…
Cancel
Save