Skip to content

Instantly share code, notes, and snippets.

@hunterjsb
Last active February 23, 2025 08:13
Show Gist options
  • Select an option

  • Save hunterjsb/7ec8a366a150b3bfb95d861d2753eaad to your computer and use it in GitHub Desktop.

Select an option

Save hunterjsb/7ec8a366a150b3bfb95d861d2753eaad to your computer and use it in GitHub Desktop.
catters
# golang project to clipboard
find . \( -path "*/.venv/*" -o -path "*/__pycache__/*" \) -prune -o -type f \( -name "*.go" -o -name "*.sh" -o -iname "readme*" \) -print0 | while IFS= read -r -d '' file; do printf '################################################################################\n# File: %s\n################################################################################\n\n' "$file"; cat "$file"; printf '\n\n'; done | xsel -ib
# wails to clipboard
find . -path "*/node_modules/*" -prune -o -type f \( -iname "*.go" -o -iname "*.js" -o -iname "*.ts" -o -iname "*.css" -o -iname "*.html" \) -print0 | while IFS= read -r -d '' file; do printf '################################################################################\n# File: %s\n################################################################################\n\n' "$file"; cat "$file"; printf '\n\n'; done | xsel -ib
# :3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment