Skip to content

Instantly share code, notes, and snippets.

@dhkts1
Created July 19, 2025 08:00
Show Gist options
  • Select an option

  • Save dhkts1/598d170677a8f998b2265754926726de to your computer and use it in GitHub Desktop.

Select an option

Save dhkts1/598d170677a8f998b2265754926726de to your computer and use it in GitHub Desktop.
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