Skip to content

Configure fd and ripgrep with sensible defaults for git repos#11

Merged
goude merged 1 commit intomainfrom
claude/configure-fd-rg-defaults-GKH1f
Apr 4, 2026
Merged

Configure fd and ripgrep with sensible defaults for git repos#11
goude merged 1 commit intomainfrom
claude/configure-fd-rg-defaults-GKH1f

Conversation

@goude
Copy link
Copy Markdown
Owner

@goude goude commented Apr 4, 2026

Summary

Add configuration for fd and ripgrep search tools with sensible defaults that work well inside git repositories, plus documentation explaining the rationale and usage patterns.

Changes

  • New config files:

    • home/.config/rg/config — ripgrep defaults (hidden files, no VCS ignore rules, exclude common noise dirs)
    • home/.config/fish/conf.d/search.fish — fish alias for fd with matching behavior, sets RIPGREP_CONFIG_PATH
  • Documentation:

    • Expanded README.md with a new "Search tools (fd / rg)" section covering:
      • Configuration rationale (why --no-ignore-vcs is needed)
      • Configuration table and excluded directories
      • Examples for temporarily overriding defaults
      • Instructions for keeping both configs in sync
    • Updated CLAUDE.md to document the primary terminal stack and new config ownership

Implementation Details

Both tools are configured identically to exclude: node_modules, dist, .git, target, __pycache__, .cache.

The key insight is using --no-ignore-vcs to override .gitignore (which is often overly restrictive for generated configs, editor files, and local artifacts) while maintaining explicit excludes for directories you almost never want to search.

The fd alias is implemented as a fish function to allow easy overriding with command fd when needed.

https://claude.ai/code/session_01WhWQGfsVpgu1PpkGXnWgRj

- Create home/.config/fish/conf.d/search.fish: sets RIPGREP_CONFIG_PATH
  and an fd alias with --hidden --no-ignore-vcs plus excludes for
  node_modules, dist, .git, target, __pycache__, .cache
- Create home/.config/rg/config: equivalent ripgrep defaults loaded
  automatically via RIPGREP_CONFIG_PATH
- Update CLAUDE.md: note Ghostty+fish+zellij as primary stack, add
  conf.d/ and rg/config to ownership map
- Update README.md: add "Search tools (fd / rg)" section with rationale,
  override examples, and sync instructions

https://claude.ai/code/session_01WhWQGfsVpgu1PpkGXnWgRj
@goude goude merged commit c8c5369 into main Apr 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants