Skip to content

fd: symlink fdfind to fd so the tool is usable under its real name - #20

Open
presto8 wants to merge 1 commit into
mainfrom
fix/fd-symlink
Open

presto8 wants to merge 1 commit into
mainfrom
fix/fd-symlink

Conversation

@presto8

@presto8 presto8 commented Aug 28, 2026

Copy link
Copy Markdown
Owner

install_package fd-find installs /usr/bin/fdfind, so nothing named 'fd'
ever appeared on PATH -- the README advertises fd but the command did
not exist. Link it into ~/.local/bin, which prestobuntu.zsh already
prepends to PATH.


🤖 Generated with Claude Code

install_package fd-find installs /usr/bin/fdfind, so nothing named 'fd'
ever appeared on PATH -- the README advertises fd but the command did
not exist. Link it into ~/.local/bin, which prestobuntu.zsh already
prepends to PATH.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new symlink creation unconditionally overwrites ~/.local/bin/fd, which can clobber a user-provided executable and should be guarded.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR makes the fd command available under its upstream name when installing Debian/Ubuntu’s fd-find package (which ships the binary as fdfind), by symlinking fdfind to ~/.local/bin/fd so it appears on PATH via the existing zsh setup.

Changes:

  • Extend install_fd() in setup to create ~/.local/bin/fd pointing to the installed fdfind binary.
  • Ensure ~/.local/bin exists before creating the symlink.
File summaries
File Description
setup Adds a post-install symlink step so fd-find is usable as fd on Debian/Ubuntu.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread setup
Comment on lines +339 to +340
mkdir -p "$dest"
ln -sf "$fdfind" "$dest/fd"
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