summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-08-08 13:38:21 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-08-08 13:38:21 +0900
commitbb0741044873c3873dcc7de834bbdc2d7336faed (patch)
treed1cf9e45f33f281b60eb3fb65ae4b555ea90bb24 /README.md
parentd826f9e72f4849c43525d7196ecc7adfe3a50a9d (diff)
Add --strip-cwd-prefix to fd examples
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1797ec1f..0d5d8688 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