diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-02-15 15:10:54 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-02-15 16:55:43 +0900 |
commit | 208e5563322436112bb263e69a72f89b41c7037e (patch) | |
tree | d5b3bcb53c4f3cf9c5db9cab02a43d8cdaf64720 /src/constants.go | |
parent | c65d11bfb5eda2fbf117bddb4512a04cca48d840 (diff) |
Replace "default find command" with built-in directory traversal
Diffstat (limited to 'src/constants.go')
-rw-r--r-- | src/constants.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/constants.go b/src/constants.go index 76211dcd..f5f8a939 100644 --- a/src/constants.go +++ b/src/constants.go @@ -2,7 +2,6 @@ package fzf import ( "math" - "os" "time" "github.com/junegunn/fzf/src/util" @@ -54,16 +53,6 @@ const ( defaultJumpLabels string = "asdfghjklqwertyuiopzxcvbnm1234567890ASDFGHJKLQWERTYUIOPZXCVBNM`~;:,<.>/?'\"!@#$%^&*()[{]}-_=+" ) -var defaultCommand string - -func init() { - if !util.IsWindows() { - defaultCommand = `set -o pipefail; 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-` - } else if os.Getenv("TERM") == "cygwin" { - defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` - } -} - // fzf events const ( EvtReadNew util.EventType = iota |