//go:build unix package config import ( "os/exec" ) func (cfg *Config) CreateEditorCommand(path string) *exec.Cmd { if cfg.Editor == "" { return nil } return exec.Command("sh", "-c", cfg.Editor+" \"$@\"", cfg.Editor, path) }