bling / fzf.el

A front-end for fzf
GNU General Public License v3.0
366 stars 50 forks source link

how to set $FZF_DEFAULT_COMMAND #13

Closed liujoey closed 7 years ago

liujoey commented 7 years ago

in my .zshrc I have this

export FZF_DEFAULT_COMMAND='(git ls-tree -r --name-only HEAD || ag -l --nocolor -g "") 2> /dev/null'

How do I set this in fzf.el?

bling commented 7 years ago

there's a fzf/args variable that you can use.

jojojames commented 7 years ago

I'm not sure you can use fzf/args for that since that is the command you pipe into fzf.

These would work.

(setenv "FZF_DEFAULT_COMMAND" "ag -g \"\" ")
(setenv "FZF_DEFAULT_COMMAND"
         "(git ls-tree -r --name-only HEAD || ag -l --nocolor -g \"\") 2> /dev/null")