-
Notifications
You must be signed in to change notification settings - Fork 39
fix: detect fd-find as fdfind on Debian/Ubuntu #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -731,15 +731,18 @@ setup_file_discovery_tools() { | |||||||||||||||||||||||||||||||||
| local missing_packages=() | ||||||||||||||||||||||||||||||||||
| local missing_names=() | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # Check for fd (fd-find) | ||||||||||||||||||||||||||||||||||
| if ! command -v fd >/dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||
| local fd_version | ||||||||||||||||||||||||||||||||||
| if command -v fd >/dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||
| fd_version=$(fd --version 2>/dev/null | head -1 || echo "unknown") | ||||||||||||||||||||||||||||||||||
| print_success "fd found: $fd_version" | ||||||||||||||||||||||||||||||||||
| elif command -v fdfind >/dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||
| fd_version=$(fdfind --version 2>/dev/null | head -1 || echo "unknown") | ||||||||||||||||||||||||||||||||||
| print_success "fd found (as fdfind): $fd_version" | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+735
to
+740
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||||||||||||||||||||||||||||||
| print_warning "Note: 'fd' alias not active in current shell. Restart shell or run: alias fd=fdfind" | ||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||
| missing_tools+=("fd") | ||||||||||||||||||||||||||||||||||
| missing_packages+=("fd") | ||||||||||||||||||||||||||||||||||
| missing_names+=("fd (fast file finder)") | ||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||
| local fd_version | ||||||||||||||||||||||||||||||||||
| fd_version=$(fd --version 2>/dev/null | head -1 || echo "unknown") | ||||||||||||||||||||||||||||||||||
| print_success "fd found: $fd_version" | ||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # Check for ripgrep | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
fdfindexists butfddoes not, this reports success even though downstream tooling that invokesfdwill still fail in the current shell unless an alias/symlink is configured. Consider warning here (or ensuring the alias setup runs) sofdis actually callable when onlyfdfindis present.🤖 Was this useful? React with 👍 or 👎