aicopy
is a simple command-line tool for macOS that copies the contents of a directory or a file, along with their filenames, to the clipboard. This is especially useful for sharing code snippets or directories of code files in a structured format.
It's just a small wrapper around pbcopy
that also includes filename information.
- Copy the contents of a directory to the clipboard, including filenames.
- Copy a single file or a pattern of files to the clipboard.
- Output is structured with clear delimiters for easy parsing by AI or automated systems.
-
Download the installation script:
curl -s https://raw.githubusercontent.com/yourusername/aicopy/main/install-aicopy.sh | bash
This will download the aicopy
script and place it in /usr/local/bin
.
aicopy <directory|file|pattern>
Most of this code and the readme was written by Chat-GPT 4o. Here's the full chat.