2010-06-22 4 views
93

방금 ​​tmux를 배우는 중이며 화면에 대한 경험이 없습니다. 하나의 tmux 클라이언트에서 다른 tmux 클라이언트로 창을 이동할 수 있는지 궁금합니다. IRC 클라이언트를 화면의 새 창으로 옮기고 싶습니다.tmux 클라이언트간에 창 이동

답변

144

예, 이동 윈도우 명령을 사용할 수 있습니다

move-window [-d] [-s src-window] [-t dst-window] 
      (alias: movew) 

이 SRC-창에서 창을 제외하고, 링크 창과 비슷가 DST-창으로 이동합니다.

여기서 src-window와 dst-window의 형식은 다음과 같습니다. session : window.pane (session 및 window는 name 또는 id 일 수 있습니다).

move-window -s chat:irc -t other_session

:

그래서, 당신은이 'IRC'창 세션을 '채팅'과합니다 (TMUX 프롬프트에서) 당신이 할 수있는 'other_session'세션으로 이동하려면이 랬 당신은 채팅에 이미있는 경우 : IRC 창 그렇게

move-window -t other_session:

이 그것을 할 것입니다 소스를 지정할 필요가 없습니다.

마찬가지로 'other_session'세션에서 대상을 지정할 필요가 없습니다. 당신이 창/세션 이름을하지 않은 경우

movew -d irc:irc_window

, 당신은 자신의 ID를 사용해야합니다.

35

또 다른 유용한 하나 :

Assuming I have these 2 sessions: daemons and proj 

tmux link-window -dk -s daemons:0 -t proj:0 
:

link-window [-dk] [-s src-window] [-t dst-window] 
       (alias: linkw) 
     Link the window at src-window to the specified dst-window. If dst-window is specified 
     and no such window exists, the src-window is linked there. If -k is given and 
     dst-window exists, it is killed, otherwise an error is generated. If -d is given, the 
     newly linked window is not selected. 

이 여러 세션에서 창을 공유 할 수 있다는 것을 의미한다