diff options
-rw-r--r-- | tmux.conf | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -10,8 +10,10 @@ set -g status-right '' set -g window-status-current-bg '#8000ff' +#setw -g on-destroy 'run-shell "let i=1; for x in \$(tmux list-windows -F \"#{window_index}:#{window_active}\"); do w=\$(echo \$x | cut -d: -f 1); a=\$(echo \$x | cut -d: -f 2); if [ \$i -ne \$w ]; then if [ \$a -eq 1 ]; then active=; else active=-d; fi; tmux move-window \$active -s :\$w -t :\$i; fi; let i++; done"' + bind-key -n C-T new-window -a -bind-key -n M-T run-shell 'tmux new-window -at :$(tmux list-windows -F "#{window_index}" | tail -1)' +bind-key -n M-T run-shell 'tmux_new_window' bind-key -n C-ppage prev bind-key -n C-npage next bind-key -n C-M-ppage swap-window -t :- |