Include symlinks in the result

This commit is contained in:
Junegunn Choi 2013-10-24 13:40:40 +09:00
parent 2bf54a0a57
commit 9efb663f38

2
fzf
View File

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