diff --git a/bash_functions/tmux-ai-prompts.sh b/bash_functions/tmux-ai-prompts.sh index 8f0a944..fd70041 100644 --- a/bash_functions/tmux-ai-prompts.sh +++ b/bash_functions/tmux-ai-prompts.sh @@ -20,17 +20,16 @@ ists." tmux set-window-option -g automatic-rename off >/dev/null tmux select-pane -T "gemini" - # Split window horizontally and run commands + # Split window horizontally, run commands and set titles tmux split-window -v -t "$session_name:0" \; send-keys "gpt" C-m tmux select-pane -T "gpt" tmux split-window -v -t "$session_name:0" \; send-keys "gpt --model claude-3.5-sonnet" C-m tmux select-pane -T "claude" + # set layout, activate synchronization and select original pane tmux select-layout tiled >/dev/null tmux set-window-option synchronize-panes on >/dev/null - - # Attach to the session (optional - comment out if you don't want to attach automatically) tmux select-pane -t 0 - tmux attach-session -t "$session_name" + # Attach to the session tmux attach-session -t "$session_name" }