Refine documentation and zoxide integration
- 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>
This commit is contained in:
parent
bf30e5ae8b
commit
72ccd5c5e0
4 changed files with 14 additions and 3 deletions
|
|
@ -92,6 +92,11 @@ create_directory "$CODE_PATH" "code"
|
|||
create_directory "$CONTENT_PATH" "content"
|
||||
create_directory "$PAPER_PATH" "paper"
|
||||
|
||||
# Record directories in zoxide for smart navigation
|
||||
[ -n "$CODE_PATH" ] && [ "$CODE_PATH" != "null" ] && [ -d "$CODE_PATH" ] && zoxide add "$CODE_PATH" 2>/dev/null || true
|
||||
[ -n "$CONTENT_PATH" ] && [ "$CONTENT_PATH" != "null" ] && [ -d "$CONTENT_PATH" ] && zoxide add "$CONTENT_PATH" 2>/dev/null || true
|
||||
[ -n "$PAPER_PATH" ] && [ "$PAPER_PATH" != "null" ] && [ -d "$PAPER_PATH" ] && zoxide add "$PAPER_PATH" 2>/dev/null || true
|
||||
|
||||
# Create remote directory if server connection is configured
|
||||
if [ -n "$SERVER" ] && [ -n "$REMOTE_DIR" ]; then
|
||||
printf "\033[2mEnsuring remote directory exists: %s:%s\033[0m\n" "$SERVER" "$REMOTE_DIR"
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ if [ -z "$SESSION_NAME" ] || [ -z "$CODE_PATH" ]; then
|
|||
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"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ fi
|
|||
|
||||
# Create windows for code
|
||||
tmux new-session -d -s $SESSION_NAME -c "$CODE_PATH"
|
||||
|
||||
# Record directories in zoxide for smart navigation
|
||||
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
|
||||
tmux new-window -t $SESSION_NAME:2 -n "code-ai" -c "$CODE_PATH"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue