m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

FZF_DEFAULT_COMMAND

This commit is contained in:
Junegunn Choi
2013-11-02 12:56:43 +09:00
parent 682583e88f
commit 6a9970c98e
3 changed files with 14 additions and 7 deletions

5
fzf
View File

@@ -10,7 +10,7 @@
# URL: https://github.com/junegunn/fzf
# Author: Junegunn Choi
# License: MIT
# Last update: October 29, 2013
# Last update: November 2, 2013
#
# Copyright (c) 2013 Junegunn Choi
#
@@ -269,7 +269,8 @@ end
@read =
if $stdin.tty?
if !`which find`.empty?
IO.popen("find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null")
IO.popen(ENV.fetch('FZF_DEFAULT_COMMAND',
"find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null"))
else
exit 1
end