diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-19 01:33:13 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-19 01:33:13 +0900 |
commit | 11407bf65650ef5bd97453e16ab3424b90ef750e (patch) | |
tree | 93df809a7f86395aa27483712b03eab65e5d68d7 /src | |
parent | c82fb3c9b907043a515dae7fdcc0e30b4c8b7cd1 (diff) |
Exclude sysfs in find commands
Diffstat (limited to 'src')
-rw-r--r-- | src/constants_unix.go | 2 |
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-` ) |