Smart Find - 智能 Find 包装器

可直接替换原生 find 命令的替代品,自动排除构建产物和噪声目录。零依赖,纯 bash 包装器,能够无缝与 BSD 和 GNU find 在 macOS 和 Linux 上协同工作。

2025开源Published

关键特性

  • Drop-in replacement: "Zero syntax changes, works with existing scripts
  • 智能检测:显式路径会自动绕过过滤器
  • User configuration: "Add/remove custom ignore directories persistently
  • Multiple bypass options: "--raw flag, SMART_FIND=0 env var, or direct /usr/bin/find

影响

- **零依赖**:纯 bash 解决方案,无运行时需求 - **13+ 个目录已排除**:自动过滤 node_modules、.git、dist、build 等 - **跨平台**:兼容 BSD find (macOS) 和 GNU findutils (Linux) - **AI 优化**:加速 Claude Code 等 AI 助手的文件操作

技术栈

核心栈

BashUnixCLI
  • 纯 bash 脚本
  • PATH 拦截技术
  • BSD/GNU find 兼容层
  • 用户配置系统

标签

bashCLI开发者工具生产力自动化文件系统UnixmacOSLinuxAI 工具