Reorder windows in tmux

To reorder windows in tmux, you can use following command

Press CTRL + B or whatever prefix you use, then press . (dot). This will ask you number/position where you need current window moved.

Another method is

This will give you tmux command promt. Now enter

This will move current window to position 0. This only work if position 0 is empty. If another window already present in position 0, use swap-window command.

This with swap current window with window in position 0.

Another useful command is

This will allow you to rename current tmux window.

Using shortcuts

You can edit .tmux.conf file and add following

Now you can use CTRL + SHIFT + LEFT OR RIGHT arrow to move windows.

See tmux

Add a Comment

Your email address will not be published. Required fields are marked *