From fc65a757a7a7f3372679885ea9c0c2bc5fd01264 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 20 Jul 2013 23:18:38 +0200 Subject: Fix tmux.conf for current versions --- tmux.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 :- -- cgit v1.2.3