m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Exclude sysfs in find commands

This commit is contained in:
Junegunn Choi
2017-02-19 01:33:13 +09:00
parent c82fb3c9b9
commit 11407bf656
4 changed files with 7 additions and 7 deletions

View File

@@ -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-`
)