summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-20 23:18:38 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-20 23:18:38 +0200
commitfc65a757a7a7f3372679885ea9c0c2bc5fd01264 (patch)
tree6c7533b1d26a29e4addd269830c506d204c73a70
parent2193743790f12f1d2537d86c6664d25fc868357c (diff)
downloadconf-misc-fc65a757a7a7f3372679885ea9c0c2bc5fd01264.tar
conf-misc-fc65a757a7a7f3372679885ea9c0c2bc5fd01264.zip
Fix tmux.conf for current versions
-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 :-