사용하기 쉽도록 몇 가지 함수 .bashrc
를 작성 tmux
합니다.
#!/bin/bash
# .bashrc
# vim tmux
#----- --------------------
tabc() { tmux kill-window; }
tabe() { tmux new-window; }
tabf() { tmux find-window $@; }
tabn() { tmux next-window; }
tabo() { ; } # <-- How to `tabonly`?
tabp() { tmux previous-window; }
qa() { tmux kill-session; }
sp() { tmux split-window; }
vsp() { tmux split-window -h; }
on() { tmux kill-pane -a; }
typeset -fx tab{c,e,f,n,o,p} {,v}sp qa on
tabonly
명령 을 구현하고 싶지만 방법을 모르겠습니다.
현재 창으로 유지하려는 창을 사용하여 실패 할 때까지 next-window
및 kill-window
반복적으로 호출하십시오 next-window
.
while tmux next-window 2> /dev/null; do
tmux kill-window
done
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다