babarot / enhancd

:rocket: A next-generation cd command with your interactive filter
2.58k stars 109 forks source link

Command not found: fd on Ubuntu #214

Open fountainer opened 1 year ago

fountainer commented 1 year ago

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 commented 1 year ago

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