Try a way to start multiple tmls

This commit is contained in:
David Heinemeier Hansson
2026-02-23 12:06:17 +01:00
parent a612d71bc7
commit 74ce6c9943
+24
View File
@@ -161,6 +161,20 @@ tml() {
tmux select-pane -t "$editor_pane"
}
# Create a tml window per subdirectory in the current directory
tmlm() {
[[ -z $TMUX ]] && { echo "You must start tmux to use tmlm."; return 1; }
local ai="$1"
for dir in */; do
[[ -d $dir ]] || continue
local dirpath="${PWD}/${dir%/}"
tmux new-window -c "$dirpath"
tmux send-keys "tml $ai" C-m
done
}
# Create a dev layout using tmux with editor, opencode, and terminal
nic() {
tml c
@@ -170,3 +184,13 @@ nic() {
nicx() {
tml cx
}
# Create tml windows for each subdirectory using opencode
nicm() {
tmlm c
}
# Create tml windows for each subdirectory using claude
nicxm() {
tmlm cx
}