oh-my-posh/environment_unix.go

16 lines
201 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
// +build !windows
package main
import (
"os"
)
func (env *environment) isRunningAsRoot() bool {
return os.Geteuid() == 0
}
func (env *environment) homeDir() string {
return os.Getenv("HOME")
}