Zet - How do I move a tmux window to another session?

How do I move a tmux window to another session?

move-window -s $session_name[:$window_index]
  • The name of the session you want to move the window from (for future reference, $session_name)
  • The index of the window you want to move (in the session itโ€™s currently in, of course โ€” weโ€™ll call this $window_index). This is actually optional โ€” if you omit this, then it defaults to the window in focus in the session youโ€™re pulling the window from.
# Moves from currently-focused window from session named `$session_name`
move-window -s $session_name 

For example. Moving the current select window on dev to parked.

  1. Select window as active window on dev
  2. Move to parked
  3. :move-window -s dev

#tmux