summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-17 13:07:45 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-17 13:07:45 +0900
commit3d74d277aa0446264240308e52df6f223cc2a8ed (patch)
tree7f630c05ac3ae6a0f24a3b760add76c8c5c1b52a
parentfc274c2ba4682198aca68d0334a5445f269aba92 (diff)
Use cut instead of sed in the default command
-rw-r--r--src/constants_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constants_unix.go b/src/constants_unix.go
index 05f66d0a..2dad4d41 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 | sed s/^..//`
+ defaultCommand = `find -L . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-`
)