// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris package config import ( "os" "os/exec" "path/filepath" ) var ( editor string = setEditor() fn string = filepath.Join(os.Getenv("HOME"), "."+configFilename) ) func setEditor() string { e := os.Getenv("EDITOR") if e == "" { return "vi" } return e }