summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-19 01:33:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-19 01:33:13 +0900
commit11407bf65650ef5bd97453e16ab3424b90ef750e (patch)
tree93df809a7f86395aa27483712b03eab65e5d68d7 /src
parentc82fb3c9b907043a515dae7fdcc0e30b4c8b7cd1 (diff)
Exclude sysfs in find commands
Diffstat (limited to 'src')
-rw-r--r--src/constants_unix.go2
1 files changed, 1 insertions, 1 deletions
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-`
)