* cmd duration in starship config moved right after directory name
* automatic attach tmux for all cases include existing $TMUX variable, but only if contains double slash in the contain path (that is signal about parent TMUX session - may be unstable solution) * reassign PATH variable in shell-env bashrc include script for resolve incorrect value of that if use pct enter command in proxmox * information marker about turned off modifier key of nested session
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 "$SSH_CONNECTION" ]]; then
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] || [[ -n "$PS1" ]] && [[ $TMUX == *"//"* ]]; then
|
||||
sudo tmux attach || sudo tmux
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user