* revert auto tmux attach logic for only if TMUX is empty and if SSH_CONNECTION is active
* use tmux 3+ config by default * fix default EDITOR set to vim * remove unnecessary PATH definition (previously used for correct environment for proxmox pct enter command)
This commit is contained in:
2
.bashrc
2
.bashrc
@ -79,6 +79,6 @@ export LC_ALL=en_US.UTF-8
|
||||
export LANG=ru_RU.UTF-8
|
||||
|
||||
# auto into tmux session
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] || [[ -n "$PS1" ]] && [[ $TMUX == *"//"* ]]; then
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
sudo tmux attach || sudo tmux
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user