Skip to content
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

Command not found: fd on Ubuntu #214

Open
fountainer opened this issue Jun 29, 2023 · 1 comment
Open

Command not found: fd on Ubuntu #214

fountainer opened this issue Jun 29, 2023 · 1 comment

Comments

@fountainer
Copy link

What did you expect to happen?
cd . lists all subdirectories.

What actually happened?
Command not found: fd.

Output

__enhancd::filepath::get_dirs_in_cwd:5: command not found: fd
no entry

Additional context

The command fd is fdfind on Ubuntu. I have an alias alias fd=fdfind. However, enhancd still can't use fd.

@adam-beck
Copy link

adam-beck commented Jul 21, 2023

I ran into this issue as well. I also had an alias but when I went through the docs for installation on Ubuntu (https://github.com/sharkdp/fd#on-ubuntu) I discovered maybe an alias isn't the correct way to handle it

Note that the binary is called fdfind as the binary name fd is already used by another package. It is recommended that after installation, you add a link to fd by executing command ln -s $(which fdfind) ~/.local/bin/fd, in order to use fd in the same way as in this documentation. Make sure that $HOME/.local/bin is in your $PATH.

After making this change, it was working

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

No branches or pull requests

2 participants