From bb0741044873c3873dcc7de834bbdc2d7336faed Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 8 Aug 2022 13:38:21 +0900 Subject: [PATCH] Add --strip-cwd-prefix to fd examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1797ec1..0d5d868 100644 --- a/README.md +++ b/README.md @@ -662,10 +662,10 @@ default find command to traverse the file system while respecting ```sh # Feed the output of fd into fzf -fd --type f | fzf +fd --type f --strip-cwd-prefix | fzf # Setting fd as the default source for fzf -export FZF_DEFAULT_COMMAND='fd --type f' +export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix' # Now fzf (w/o pipe) will use fd instead of find fzf @@ -678,7 +678,7 @@ If you want the command to follow symbolic links and don't want it to exclude hidden files, use the following command: ```sh -export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' +export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git' ``` #### Fish shell