Created
July 19, 2025 08:00
-
-
Save dhkts1/598d170677a8f998b2265754926726de to your computer and use it in GitHub Desktop.
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
| find() { | |
| if [[ -n "$CLAUDE_TOOL_NAME" ]] || [[ -n "$CLAUDE_FILE_PATHS" ]]; then | |
| echo "# Claude Code: excluding unwanted directories" >&2 | |
| bfs -exclude \( \ | |
| -name node_modules \ | |
| -o -name .venv \ | |
| -o -name venv \ | |
| -o -name __pycache__ \ | |
| -o -name .git \ | |
| -o -name .history \ | |
| -o -name .cache \ | |
| -o -name dist \ | |
| -o -name build \ | |
| \) "$@" | |
| else | |
| bfs "$@" | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment