mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-14 00:49:04 +08:00
FZF_DEFAULT_COMMAND
This commit is contained in:
1 parent
682583e88f
commit
6a9970c98e
3 files changed
+14
-7
No files matched your search
@@ -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