Thomas Adam <[email protected]> writes:
> The idea behind this was to allow tmux to automatically reumber windows in
> sequence when deleting windows from a session so that no "gaps" appeared.
> This can be useful when creating lots of windows in a session.
How I did it for years:
#!/bin/sh
# tmux-compress - renumber tmux windows in sequence
tmux lsw |
awk -F: '/^[0-9]+/ { if ($1 != ++i)
print "tmux move-window -s " $1 " -t " i }' |
sh
--
Christian Neukirchen <[email protected]> http://chneukirchen.org
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users