diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-08 13:38:21 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-08 13:38:21 +0900 |
commit | bb0741044873c3873dcc7de834bbdc2d7336faed (patch) | |
tree | d1cf9e45f33f281b60eb3fb65ae4b555ea90bb24 | |
parent | d826f9e72f4849c43525d7196ecc7adfe3a50a9d (diff) |
Add --strip-cwd-prefix to fd examples
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |