반응형
tmux 클라이언트간에 창 이동
방금 tmux를 배우고 있으며 화면에 대한 경험이 없습니다. 하나의 tmux 클라이언트에서 다른 tmux 클라이언트로 창을 이동할 수 있는지 궁금합니다. IRC 클라이언트를 화면의 새 창으로 옮기고 싶습니다.
예, move-window 명령을 사용할 수 있습니다 :
move-window [-d] [-s src-window] [-t dst-window]
(alias: movew)
이것은 src-window의 창이 dst-window로 이동된다는 점을 제외하면 link-window와 유사합니다.
여기서 src-window 및 dst-window의 형식은 session : window.pane입니다 (세션 및 창은 이름 또는 ID 일 수 있음).
따라서 'irc'창이있는 '채팅'세션이 있고 tmux 프롬프트에서 수행 할 수있는 'other_session'세션으로 이동한다고 가정합니다.
move-window -s chat:irc -t other_session
chat : irc 창에 이미 있다면 소스를 지정할 필요가 없습니다.
move-window -t other_session:
할 것입니다.
같은 방식으로 'other_session'세션에서 대상을 지정할 필요가 없습니다.
movew -d irc:irc_window
창 / 세션 이름을 지정하지 않은 경우 ID를 사용해야합니다.
또 다른 유용한 것 :
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.
이는 여러 세션에서 창을 공유 할 수 있음을 의미합니다.
Assuming I have these 2 sessions: daemons and proj
tmux link-window -dk -s daemons:0 -t proj:0
참고 URL : https://stackoverflow.com/questions/3094946/move-window-between-tmux-clients
반응형
'programing tip' 카테고리의 다른 글
thymeleaf와 함께 data- * 속성 사용 (0) | 2020.07.27 |
---|---|
모듈의 __getattr__ (0) | 2020.07.27 |
Eclipse를 실행하려면 JRE 또는 JDK가 사용 가능해야합니다. (0) | 2020.07.27 |
iTunes 연결에서 빌드를 제거하는 방법은 무엇입니까? (0) | 2020.07.27 |
LocalDate에서 java.util.Date로 또는 그 반대로 변환하는 가장 간단한 방법은 무엇입니까? (0) | 2020.07.27 |