tmux

本篇是筆記文, 記一下 tmux 的特別用法

用命令列新增四個視窗

tmux \
   new-session  "command1 ; read" \; \
   split-window "command2 ; read" \; \
   select-pane -U \; \
   split-window -h "command3 ; read" \; \
   select-pane -D \; \
   split-window -h "command4 ; read" \; 

如果是要在 tmux 內新增一個視窗, 將 new-session 改成 new-window

偵測目前是不是在 tmux 內

echo $TMUX

Related posts

Related Posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>