Use cut instead of sed in the default command

This commit is contained in:
Junegunn Choi 2017-02-17 13:07:45 +09:00
parent fc274c2ba4
commit 3d74d277aa
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -4,5 +4,5 @@ package fzf
const ( const (
// Reader // Reader
defaultCommand = `find -L . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//` defaultCommand = `find -L . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-`
) )