mirror of https://github.com/junegunn/fzf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
276 B
Go
18 lines
276 B
Go
8 years ago
|
// +build windows
|
||
|
|
||
|
package util
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
// ExecCommand executes the given command with $SHELL
|
||
|
func ExecCommand(command string) *exec.Cmd {
|
||
|
shell := os.Getenv("SHELL")
|
||
|
if len(shell) == 0 {
|
||
|
shell = "cmd"
|
||
|
}
|
||
|
return exec.Command(shell, "/c", command)
|
||
|
}
|