diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-02-07 01:49:29 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-02-07 01:49:29 +0900 |
commit | e95d82748fc8fe5a05d93b30388ba37adb7dbac8 (patch) | |
tree | d59019cea080cd5c5afb6864ae5c55832d0b4285 /src/reader.go | |
parent | 30bd0b53dbf804a96db4c13d787771b3924d6634 (diff) |
Use $SHELL to start $FZF_DEFAULT_COMMAND (#481)
Diffstat (limited to 'src/reader.go')
-rw-r--r-- | src/reader.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reader.go b/src/reader.go index 3e2cf0a0..85cbf8be 100644 --- a/src/reader.go +++ b/src/reader.go @@ -4,7 +4,6 @@ import ( "bufio" "io" "os" - "os/exec" "github.com/junegunn/fzf/src/util" ) @@ -59,7 +58,7 @@ func (r *Reader) readFromStdin() { } func (r *Reader) readFromCommand(cmd string) { - listCommand := exec.Command("sh", "-c", cmd) + listCommand := util.ExecCommand(cmd) out, err := listCommand.StdoutPipe() if err != nil { return |