From 6f8b598d8199371f030f8289cf58abf284d0b853 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 30 Jul 2025 09:54:09 +0200 Subject: [PATCH] Update CLAUDE.md and script templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modified CLAUDE.md configuration - Updated basic.sh template script - Updated research.sh template script 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 2 +- scripts/templates/basic.sh | 2 ++ scripts/templates/research.sh | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 522bdec..798e92f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ ## Nix Configuration System - This is my nix configuration system. Whenever you need to introduce update to my config, remember to check the current config. -- When you are going to introduce update to my nix config, do it on a experimental branch (use 'nightly'), and commit and push to that branch after you perform `hms` to at least check the home-manager switch can pass. Never work on the master branch which I will perform merge manually. +- When you are going to introduce any update, do it on a experimental branch (use 'nightly'), and commit and push to that branch after you perform `hms` to at least check the home-manager switch can pass. Never work on the master branch which I will perform merge manually. - After you introduce updates, remember to reflect those updates in the readme, should they bring any changes. ## Testing Considerations diff --git a/scripts/templates/basic.sh b/scripts/templates/basic.sh index a4e50f2..b245032 100755 --- a/scripts/templates/basic.sh +++ b/scripts/templates/basic.sh @@ -17,6 +17,8 @@ tmux new-session -d -s $SESSION_NAME -c "$CODE_PATH" zoxide add "$CODE_PATH" 2>/dev/null || true tmux rename-window -t $SESSION_NAME:1 "nvim" tmux send-keys -t $SESSION_NAME:1 "nvim" C-m +sleep 0.5 # Brief delay to ensure nvim loads +tmux send-keys -t $SESSION_NAME:1 " e" tmux new-window -t $SESSION_NAME:2 -n "ai" -c "$CODE_PATH" tmux send-keys -t $SESSION_NAME:2 "claude -c" C-m tmux split-window -t $SESSION_NAME:2 -h -c "$CODE_PATH" diff --git a/scripts/templates/research.sh b/scripts/templates/research.sh index 08a9550..c8ed1df 100755 --- a/scripts/templates/research.sh +++ b/scripts/templates/research.sh @@ -22,6 +22,8 @@ zoxide add "$CODE_PATH" 2>/dev/null || true zoxide add "$PAPER_PATH" 2>/dev/null || true tmux rename-window -t $SESSION_NAME:1 "code" tmux send-keys -t $SESSION_NAME:1 "nvim" C-m +sleep 0.5 # Brief delay to ensure nvim loads +tmux send-keys -t $SESSION_NAME:1 " e" tmux new-window -t $SESSION_NAME:2 -n "code-ai" -c "$CODE_PATH" tmux send-keys -t $SESSION_NAME:2 "claude -c" C-m tmux split-window -t $SESSION_NAME:2 -h -c "$CODE_PATH" @@ -34,6 +36,8 @@ tmux send-keys -t $SESSION_NAME:3 "lazygit" C-m tmux new-window -t $SESSION_NAME:4 -n "paper" -c "$PAPER_PATH" tmux select-window -t $SESSION_NAME:4 tmux send-keys -t $SESSION_NAME:4 "nvim" C-m +sleep 0.5 # Brief delay to ensure nvim loads +tmux send-keys -t $SESSION_NAME:4 " e" tmux new-window -t $SESSION_NAME:5 -n "paper-ai" -c "$PAPER_PATH" tmux send-keys -t $SESSION_NAME:5 "claude -c" C-m tmux split-window -t $SESSION_NAME:5 -h -c "$PAPER_PATH"