是否可以将由<command>
和new-session
给出的split-window
发送到窗格标题?
tmux \
new-session -s start \
"lerna bootstrap; read" \; \
split-window -c "#{pane_current_path}" \
"yarn api:setup; read" \; \
split-window -c "#{pane_current_path}" \
"yarn api:start; read" \; \
split-window -c "#{pane_current_path}" \
"yarn spa:start; read" \; \
split-window -c "#{pane_current_path}" \
"yarn spa:deps:build; read" \; \
select-layout even-vertical
set -g pane-border-format "#P: #{pane_current_command}"
──0: bash─────────────────────
──1: bash─────────────────────
──2: bash─────────────────────
──0: lerna bootstrap; read─────────────────────
──1: yarn api:setup; read─────────────────────
──2: yarn api:start; read─────────────────────
等
答案 0 :(得分:2)
您可以使用#{pane_start_command},但显然不会随着运行命令的更改而更新。