Try a way to start multiple tmls
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user