Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[$FZF_DEFAULT_COMMAND failed] #1408

Closed
4 of 14 tasks
TsaiKoga opened this issue Oct 18, 2018 · 3 comments
Closed
4 of 14 tasks

[$FZF_DEFAULT_COMMAND failed] #1408

TsaiKoga opened this issue Oct 18, 2018 · 3 comments

Comments

@TsaiKoga
Copy link

TsaiKoga commented Oct 18, 2018

  • Category
    • fzf binary
    • fzf-tmux script
    • Key bindings
    • Completion
    • Vim
    • Neovim
    • Etc.
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

I use fzf today.

brew install fzf

and I add export in ~/.bash_profile

export FZF_DEFAULT_COMMAND="fd --exclude={.git,.idea,.vscode,.sass-cache,node_modules,build} --type f"
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --preview '(highlight -O ansi {} || cat {}) 2> /dev/null | head -500'"

and then

source ~/.bash_profile

And then use fzf
It's show this error

     [$FZF_DEFAULT_COMMAND failed]

and the preview configuration is work, but the default command is failed.

And I remove that line from the bash_profile, or reinstall the fzf it still failed.

@kakig
Copy link

kakig commented Oct 20, 2018

How did you install fd? Can you check it is working properly?
I tried to reproduce the issue here, it worked under fish and not under bash and zsh, so I realized that my $PATH wasn't properly configured to include the fd binary. After I fixed that the command is working in all three shells.

@TsaiKoga
Copy link
Author

I install fd by brew
It work after I removed the configuration from .bash_profile, and add it to .zshrc

@originalix
Copy link

@TsaiKoga Thank you. Is worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants