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

Close #310
This commit is contained in:
Junegunn Choi 2015-08-01 21:48:35 +09:00
parent 0b4542fcdf
commit 5e90f0a57b

View File

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