Last active
March 31, 2024 05:00
-
-
Save mbusigin/39dec6822e961c785f2a87f4284f70d1 to your computer and use it in GitHub Desktop.
MacOS X shell script to recursively copy a code base into a single OSX paste buffer so we can paste it into GPT-4 or Claude.
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
#!/bin/sh | |
for x in `find . | grep -v .git | grep -v node_modules | grep -v '~' | grep -v package-lock.json | grep -v package.json | grep -v png | grep -v ico | grep -v "backend/db.sqlite" | grep -v .mp3 | grep -v .ogg | grep -v uploads | grep -v .db | grep -v .svg | grep -v log.txt` | |
do | |
echo "<code filename=\"$x\">" | |
cat $x | |
echo "</code>" | |
done | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment