From 5feb89aa992cf12c8d9929ba600959714ba2dd13 Mon Sep 17 00:00:00 2001 From: Chinmay Date: Fri, 12 Feb 2021 11:22:35 +0530 Subject: [PATCH] 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 --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5bc0f42..5cc2be0 100644 --- a/README.md +++ b/README.md @@ -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