Exclude hidden files by default (TBD)

This commit is contained in:
Junegunn Choi 2013-10-24 01:15:29 +09:00
parent 03b204ec40
commit e8a1346aa4

2
fzf
View File

@ -119,7 +119,7 @@ C.init_pair 4, C::COLOR_RED, C::COLOR_BLACK
@read = @read =
if $stdin.tty? if $stdin.tty?
if !`which find`.empty? if !`which find`.empty?
IO.popen('find . -type f 2> /dev/null') IO.popen("find * -path '*/\\.*' -prune -o -type f -print 2> /dev/null")
else else
exit 1 exit 1
end end