* 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:
2023-09-12 14:37:01 +03:00
parent e5b671f087
commit aeb7bd17f5
4 changed files with 24 additions and 29 deletions

View File

@ -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