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:
5
fzf
5
fzf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user