diff options
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/tmux.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 8d3222c..6a40dfe 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -43,6 +43,14 @@ bind-key @ run-shell 'cur=$(tmux display-message -p "#S"); case "$cur" in A-*) t bind-key O run-shell 'tmux-cycle-a-session next' bind-key I run-shell 'tmux-cycle-a-session prev' +# Kill the current session and attach the client to the next available one. +# Order matters: capture the current name first, hop to the next session with +# switch-client -n, THEN kill the old session. Switching before killing keeps +# the client attached instead of detaching it (killing the session a client is +# on would otherwise drop you back to the shell). If this is the last session, +# switch-client -n is a no-op and killing it detaches the client, as expected. +bind-key X run-shell 'cur=$(tmux display-message -p "#S"); tmux switch-client -n; tmux kill-session -t "$cur"' + set-option -g pane-active-border-style fg=magenta,bold set -g status-right '#{@hexai_status} #[fg=colour8]| %H:%M' |
