From eaf3ef3806c3d8653f5be06842e0b69462d5c264 Mon Sep 17 00:00:00 2001 From: dimti Date: Thu, 4 Apr 2024 18:09:25 +0300 Subject: [PATCH] * do not use sudo for attach tmux session on logged in non-privileged users --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 724351d..d84ea44 100644 --- a/.bashrc +++ b/.bashrc @@ -80,5 +80,5 @@ export LANG=ru_RU.UTF-8 # auto into tmux session if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then - sudo tmux attach || sudo tmux + tmux attach || tmux fi