Skip to content
Myr

Add --strip-cwd-prefix to fd examples

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent d826f9e · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:README.md+3 added-3 removed
660 unmodified lines
661`.gitignore`.662663```sh664# Feed the output of fd into fzf665fd --type f | fzf665fd --type f --strip-cwd-prefix | fzf666667# Setting fd as the default source for fzf668export FZF_DEFAULT_COMMAND='fd --type f'668export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix'669670# Now fzf (w/o pipe) will use fd instead of find671fzf672
4 unmodified lines
677If you want the command to follow symbolic links and don't want it to exclude678hidden files, use the following command:679680```sh681export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'681export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'682```683684#### Fish shell685
29 unmodified lines