Compare commits

...

1 Commits

Author SHA1 Message Date
960eec1a8d tmux group session each terminal 2024-03-28 09:53:02 +03:00
2 changed files with 8 additions and 2 deletions

View File

@ -15,7 +15,7 @@ set -g window-status-style 'bg=default'
set -g window-status-current-style 'bg=white,fg=black bold' set -g window-status-current-style 'bg=white,fg=black bold'
set -g window-status-format '#W#{?window_flags,#{window_flags}, }' set -g window-status-format '#W#{?window_flags,#{window_flags}, }'
set -g window-status-current-format '#W#{?window_flags,#{window_flags}, }' set -g window-status-current-format '#W#{?window_flags,#{window_flags}, }'
setw -g monitor-activity on setw -g monitor-activity off
# window title style # window title style
set -g set-titles on set -g set-titles on

View File

@ -1,8 +1,14 @@
# .zshrc by TheK4n # .zshrc by TheK4n
# https://github.com/TheK4n/dotfiles # https://github.com/TheK4n/dotfiles
TMUX_MAIN_SESSION="main"
if command -v tmux &>/dev/null && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then if command -v tmux &>/dev/null && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux if tmux has-session -t "$TMUX_MAIN_SESSION" &>/dev/null; then
exec tmux new-session -t "$TMUX_MAIN_SESSION"
else
exec tmux new-session -s "$TMUX_MAIN_SESSION"
fi
fi fi
if [ -f "$ZDOTDIR/sourcer" ]; then if [ -f "$ZDOTDIR/sourcer" ]; then