mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
17 lines
228 B
Go
17 lines
228 B
Go
// +build !darwin,!windows
|
|
|
|
package peco
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func homedir() (string, error) {
|
|
home := os.Getenv("HOME")
|
|
if home == "" {
|
|
return "", fmt.Errorf("Environment variable HOME not set")
|
|
}
|
|
|
|
return home, nil
|
|
} |