junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
65.14k stars 2.4k forks source link

Problems with fd and zsh #1725

Closed Mladia closed 5 years ago

Mladia commented 5 years ago

Pressing Ctrl+T always gives the output:

find: paths must precede expression: `file`

I have added this to my .zshrc

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd --type file -H'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"

and I am using the fzf plugin in oh-my-zsh from here https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/fzf/fzf.plugin.zsh

Any ideas what might be causing the problem?

jose1711 commented 5 years ago

interesting, i cannot reproduce the issue on my system. can you share output of fd --version and which fd?

Mladia commented 5 years ago

Yes, thank you, I got it. It seems oh-my-zsh has aliased fd to find