editor_unix.go 195 B

1234567891011
  1. //go:build unix
  2. package config
  3. import (
  4. "os/exec"
  5. )
  6. func (cfg *Config) CreateEditorCommand(path string) *exec.Cmd {
  7. return exec.Command("sh", "-c", cfg.Editor+" \"$@\"", cfg.Editor, path)
  8. }