fzf-40.sh
· 335 B · Bash
Исходник
# Feed the output of fd into fzf
fd --type f --strip-cwd-prefix | fzf
# Setting fd as the default source for fzf
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix'
# Now fzf (w/o pipe) will use the fd command to generate the list
fzf
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
1 | # Feed the output of fd into fzf |
2 | fd --type f --strip-cwd-prefix | fzf |
3 | |
4 | # Setting fd as the default source for fzf |
5 | export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix' |
6 | |
7 | # Now fzf (w/o pipe) will use the fd command to generate the list |
8 | fzf |
9 | |
10 | # To apply the command to CTRL-T as well |
11 | export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" |