Initial sandbox buildout - Structure: projects, docs, inbox, archive, templates, scripts, tools - Tools: search.py, inbox-processor.py, daily-digest.py - Shell aliases and bashrc integration - Templates for projects and notes - MEMORY.md, TASKS.md, STRUCTURE.md - tmux config
This commit is contained in:
43
scripts/aliases.sh
Normal file
43
scripts/aliases.sh
Normal file
@ -0,0 +1,43 @@
|
||||
# OpenClaw Workspace Aliases
|
||||
# Source this from ~/.bashrc
|
||||
|
||||
export WORKSPACE="/home/wdjones/.openclaw/workspace"
|
||||
|
||||
# Navigation
|
||||
alias ws='cd $WORKSPACE'
|
||||
alias proj='cd $WORKSPACE/projects'
|
||||
alias docs='cd $WORKSPACE/docs'
|
||||
|
||||
# Quick access
|
||||
alias tasks='cat $WORKSPACE/TASKS.md'
|
||||
alias mem='cat $WORKSPACE/MEMORY.md'
|
||||
alias today='cat $WORKSPACE/memory/$(date +%Y-%m-%d).md 2>/dev/null || echo "No notes for today"'
|
||||
|
||||
# Project creation
|
||||
alias newproj='$WORKSPACE/scripts/new-project.sh'
|
||||
|
||||
# Search workspace
|
||||
wsearch() {
|
||||
grep -ri "$1" $WORKSPACE --include="*.md" --include="*.txt" --include="*.sh" | head -30
|
||||
}
|
||||
|
||||
# Quick note to today's log
|
||||
note() {
|
||||
echo "- $(date +%H:%M): $*" >> $WORKSPACE/memory/$(date +%Y-%m-%d).md
|
||||
}
|
||||
|
||||
# Inbox drop
|
||||
inbox() {
|
||||
echo "$*" >> $WORKSPACE/inbox/quick-notes.md
|
||||
echo "Added to inbox"
|
||||
}
|
||||
|
||||
# List projects
|
||||
lsproj() {
|
||||
ls -la $WORKSPACE/projects/
|
||||
}
|
||||
|
||||
# Tools
|
||||
alias search='python3 $WORKSPACE/tools/search.py'
|
||||
alias inbox='python3 $WORKSPACE/tools/inbox-processor.py'
|
||||
alias digest='python3 $WORKSPACE/tools/daily-digest.py'
|
||||
20
scripts/new-project.sh
Executable file
20
scripts/new-project.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Create a new project from template
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: new-project.sh <project-name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PROJECT_NAME="$1"
|
||||
PROJECT_DIR="/home/wdjones/.openclaw/workspace/projects/$PROJECT_NAME"
|
||||
TEMPLATE="/home/wdjones/.openclaw/workspace/templates/project.md"
|
||||
|
||||
if [ -d "$PROJECT_DIR" ]; then
|
||||
echo "Project '$PROJECT_NAME' already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$PROJECT_DIR"
|
||||
sed "s/{Project Name}/$PROJECT_NAME/g" "$TEMPLATE" > "$PROJECT_DIR/README.md"
|
||||
echo "Created project: $PROJECT_DIR"
|
||||
Reference in New Issue
Block a user