mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
https://github.com/peco/peco/issues/102#issuecomment-47181175 https://github.com/peco/peco/issues/102#issuecomment-47184669 https://github.com/peco/peco/issues/102#issuecomment-47184943
15 lines
200 B
Go
15 lines
200 B
Go
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
|
|
} |