From 11407bf65650ef5bd97453e16ab3424b90ef750e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 19 Feb 2017 01:33:13 +0900 Subject: Exclude sysfs in find commands --- src/constants_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/constants_unix.go b/src/constants_unix.go index 2dad4d41..94371e62 100644 --- a/src/constants_unix.go +++ b/src/constants_unix.go @@ -4,5 +4,5 @@ package fzf const ( // Reader - defaultCommand = `find -L . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` + defaultCommand = `command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` ) -- cgit v1.2.3