summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tmux.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.conf b/tmux.conf
index 99c2a01..99bb6e7 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -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 :-