Fix for many panes
This commit is contained in:
@@ -78,10 +78,9 @@ tsl() {
|
|||||||
local split_target="${panes[-1]}"
|
local split_target="${panes[-1]}"
|
||||||
new_pane=$(tmux split-window -h -t "$split_target" -c "$current_dir" -P -F '#{pane_id}')
|
new_pane=$(tmux split-window -h -t "$split_target" -c "$current_dir" -P -F '#{pane_id}')
|
||||||
panes+=("$new_pane")
|
panes+=("$new_pane")
|
||||||
|
tmux select-layout -t "${panes[0]}" tiled
|
||||||
done
|
done
|
||||||
|
|
||||||
tmux select-layout -t "${panes[0]}" tiled
|
|
||||||
|
|
||||||
for pane in "${panes[@]}"; do
|
for pane in "${panes[@]}"; do
|
||||||
tmux send-keys -t "$pane" "$cmd" C-m
|
tmux send-keys -t "$pane" "$cmd" C-m
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user