Fix default command so that it doesn't fail on dash-prefixed files

Close #310
pull/326/head
Junegunn Choi 9 years ago
parent 0b4542fcdf
commit 5e90f0a57b

@ -15,7 +15,7 @@ const (
coordinatorDelayStep time.Duration = 10 * time.Millisecond
// Reader
defaultCommand = `find * -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null`
defaultCommand = `find . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//`
// Terminal
initialDelay = 100 * time.Millisecond

Loading…
Cancel
Save