README update: Use soft link instead of alias for Debian.

As export command will not work with fd because fd is just an alias to
fdfind, create a soft link instead of alias.

Addresses https://github.com/sharkdp/fd/issues/728
This commit is contained in:
Chinmay 2021-02-12 11:22:35 +05:30 committed by David Peter
parent 8a532e5196
commit 5feb89aa99
1 changed files with 8 additions and 4 deletions

View File

@ -437,8 +437,10 @@ If you run Ubuntu 19.04 (Disco Dingo) or newer, you can install the
sudo apt install fd-find
```
Note that the binary is called `fdfind` as the binary name `fd` is already used by another package.
It is recommended that you add an `alias fd=fdfind` to your shells initialization file, in order to
use `fd` in the same way as in this documentation.
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.
You can also add `alias fd=fdfind` to your shells initialization file but this wouldn't help if you
export variables using `fd`. You will have to use `fdfind` in export also.
If you use an older version of Ubuntu, you can download the latest `.deb` package from the
[release page](https://github.com/sharkdp/fd/releases) and install it via:
@ -454,8 +456,10 @@ If you run Debian Buster or newer, you can install the
sudo apt-get install fd-find
```
Note that the binary is called `fdfind` as the binary name `fd` is already used by another package.
It is recommended that you add an `alias fd=fdfind` to your shells initialization file, in order to
use `fd` in the same way as in this documentation.
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.
You can also add `alias fd=fdfind` to your shells initialization file but this wouldn't help if you
export variables using `fd`. You will have to use `fdfind` in export also.
### On Fedora