Fix FZF_DEFAULT_COMMAND
This commit is contained in:
parent
dc67420319
commit
3f73554a9e
7
fzf
7
fzf
@ -305,9 +305,10 @@ end
|
|||||||
|
|
||||||
@read =
|
@read =
|
||||||
if $stdin.tty?
|
if $stdin.tty?
|
||||||
if !`which find`.empty?
|
if default_command = ENV['FZF_DEFAULT_COMMAND']
|
||||||
IO.popen(ENV.fetch('FZF_DEFAULT_COMMAND',
|
IO.popen(default_command)
|
||||||
"find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null"))
|
elsif !`which find`.empty?
|
||||||
|
IO.popen("find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null")
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = 'fzf'
|
spec.name = 'fzf'
|
||||||
spec.version = '0.2.1'
|
spec.version = '0.2.2'
|
||||||
spec.authors = ['Junegunn Choi']
|
spec.authors = ['Junegunn Choi']
|
||||||
spec.email = ['junegunn.c@gmail.com']
|
spec.email = ['junegunn.c@gmail.com']
|
||||||
spec.description = %q{Fuzzy finder for your shell}
|
spec.description = %q{Fuzzy finder for your shell}
|
||||||
|
Loading…
Reference in New Issue
Block a user