Created
December 1, 2025 14:38
-
-
Save wbern/cc68bd0d9fa6f1a04b7652ca8ac363c3 to your computer and use it in GitHub Desktop.
Temporary Claude Code sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias maud='ide="${CLAUDE_IDE:-code}" && dir=$(mktemp -d) && echo "# Temporary Claude Session | |
| This instance was initiated in a temporary directory and will be pruned eventually. | |
| When working with js, typically we work with pnpm, vitest, if needed react and playwright | |
| If you want to continue somewhere more permanent, use \`laud\` to copy this directory to ~/keeps/ with a timestamp." > "$dir/CLAUDE.md" && mkdir -p "$dir/.vscode" && echo "{ | |
| \"version\": \"2.0.0\", | |
| \"tasks\": [ | |
| { | |
| \"label\": \"Auto start Claude\", | |
| \"type\": \"shell\", | |
| \"command\": \"claude\", | |
| \"runOptions\": { | |
| \"runOn\": \"folderOpen\" | |
| }, | |
| \"presentation\": { | |
| \"echo\": false, | |
| \"reveal\": \"always\", | |
| \"focus\": true, | |
| \"panel\": \"new\" | |
| } | |
| } | |
| ] | |
| }" > "$dir/.vscode/tasks.json" && "$ide" "$dir"' | |
| alias laud='ide="${CLAUDE_IDE:-code}" && dest_dir="$HOME/keeps/$(basename "$(pwd)")_$(date +%s)" && mkdir -p "$dest_dir" && cp -r "$(pwd)/." "$dest_dir/" && echo "Copied to $dest_dir" && "$ide" "$dest_dir"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment