mirror of
https://github.com/junegunn/fzf
synced 2026-07-27 17:41:41 +00:00
898d8d94c8
- Fix display of CJK wide characters
- Fix horizontal offset of header lines
- Add support for keys with ALT modifier, shift-tab, page-up and down
- Fix util.ExecCommand to properly parse command-line arguments
- Fix redraw on resize
- Implement Pause/Resume for execute action
- Remove runtime check of GOOS
- Change exit status to 2 when tcell failed to start
- TBD: Travis CI build for tcell renderer
- Pending. tcell cannot reliably ingest keys from tmux send-keys
23 lines
354 B
Go
23 lines
354 B
Go
// +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 = "sh"
|
|
}
|
|
return exec.Command(shell, "-c", command)
|
|
}
|
|
|
|
// IsWindows returns true on Windows
|
|
func IsWindows() bool {
|
|
return false
|
|
}
|