Move window to another session
windows
// what it does
move-window (alias movew) relocates a window across sessions: `-s foo:0` names the source session:index and `-t bar:9` the destination session:index. This lets you consolidate a window from one session into another without recreating it or its running processes.
// tmux command
: move-window -s src_ses:win -t target_ses:win: movew -s foo:0 -t bar:9// gotcha
If the destination index (bar:9) already holds a window, the move fails with "index in use" unless you add `-k` to kill and overwrite the window already there.