github.com/engineyard/workflow-cli@v2.21.6+incompatible/settings/home_unix.go (about)

     1  // +build linux darwin
     2  
     3  package settings
     4  
     5  import (
     6  	"os"
     7  )
     8  
     9  // FindHome returns the HOME directory of the current user
    10  func FindHome() string {
    11  	return os.Getenv("HOME")
    12  }
    13  
    14  // SetHome sets the HOME directory of the current user
    15  func SetHome(path string) {
    16  	os.Setenv("HOME", path)
    17  }