- Clarify testing command in CLAUDE.md (use hms) - Remove redundant shell refresh instruction - Fix formatting consistency in testing section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
No EOL
1,022 B
Bash
Executable file
31 lines
No EOL
1,022 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Basic development template - single directory with nvim, ai, git, shell
|
|
# Usage: basic.sh SESSION_NAME CODE_PATH
|
|
|
|
SESSION_NAME="$1"
|
|
CODE_PATH="$2"
|
|
|
|
if [ -z "$SESSION_NAME" ] || [ -z "$CODE_PATH" ]; then
|
|
echo "Usage: $0 SESSION_NAME CODE_PATH"
|
|
exit 1
|
|
fi
|
|
|
|
tmux new-session -d -s $SESSION_NAME -c "$CODE_PATH"
|
|
|
|
# Record directory in zoxide for smart navigation
|
|
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
|
|
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"
|
|
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" -c "$CODE_PATH"
|
|
tmux send-keys -t $SESSION_NAME:3 "lazygit" C-m
|
|
tmux new-window -t $SESSION_NAME:4 -n "shell" -c "$CODE_PATH"
|
|
|
|
tmux select-window -t $SESSION_NAME:1
|
|
|
|
tmux attach-session -t $SESSION_NAME |