From fce0729d48541e6769b39b487ba911021aa1ba1b Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 22:57:11 +0200 Subject: [PATCH] Fix basic.sh template working directory robustness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add -c "$CODE_PATH" to all tmux new-window and split-window commands - Ensures all windows and panes start in correct project directory - Fixes issue where only first window was in correct location - content.sh and research.sh templates were already robust 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/templates/basic.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/templates/basic.sh b/scripts/templates/basic.sh index 0372170..42e540f 100755 --- a/scripts/templates/basic.sh +++ b/scripts/templates/basic.sh @@ -19,14 +19,14 @@ fi tmux new-session -d -s $SESSION_NAME -c "$CODE_PATH" tmux rename-window -t $SESSION_NAME:1 "nvim" tmux send-keys -t $SESSION_NAME:1 "nvim" C-m -tmux new-window -t $SESSION_NAME:2 -n "ai" +tmux new-window -t $SESSION_NAME:2 -n "ai" -c "$CODE_PATH" tmux send-keys -t $SESSION_NAME:2 "claude -r" C-m -tmux split-window -t $SESSION_NAME:2 -h -tmux split-window -t $SESSION_NAME:2.2 -v +tmux split-window -t $SESSION_NAME:2 -h -c "$CODE_PATH" +tmux split-window -t $SESSION_NAME:2.2 -v -c "$CODE_PATH" tmux select-pane -t $SESSION_NAME:2.1 -tmux new-window -t $SESSION_NAME:3 -n "git" +tmux new-window -t $SESSION_NAME:3 -n "git" -c "$CODE_PATH" tmux send-keys -t $SESSION_NAME:3 "gitui" C-m -tmux new-window -t $SESSION_NAME:4 -n "shell" +tmux new-window -t $SESSION_NAME:4 -n "shell" -c "$CODE_PATH" tmux select-window -t $SESSION_NAME:1