tmux group session each terminal
This commit is contained in:
parent
4212284e94
commit
960eec1a8d
@ -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-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
|
||||
set -g set-titles on
|
||||
|
||||
@ -1,8 +1,14 @@
|
||||
# .zshrc by TheK4n
|
||||
# https://github.com/TheK4n/dotfiles
|
||||
|
||||
TMUX_MAIN_SESSION="main"
|
||||
|
||||
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
|
||||
|
||||
if [ -f "$ZDOTDIR/sourcer" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user