I have three windows:
1:zsh 2:vim* 3:htop
When I delete the current window (#2), I have these windows left:
1:zsh 3:htop
How can I make it so that it automatically renumbers them as
1:zsh 2:htop
If I recall correctly, this is the default behavior of GNU Screen. I know I could always :swap-window
, but I would like to know if this is possible automatically.
run-shell
). – Chris Johnsenrenumber-windows
session option (keeps window numbers gapless), and themove-window -r
command (does a one-time renumbering of windows). If you want “gapless” numbers for all sessions, then you could putset -g renumber-windows on
in your config file (once you have tmux 1.7). – Chris Johnsen