oh-my-posh/environment_unix.go
Jan De Dobbeleer 56468baf4c fix: remove user.current()
relates to #55
2020-10-12 16:09:06 +02:00

16 lines
201 B
Go
Executable file

// +build !windows
package main
import (
"os"
)
func (env *environment) isRunningAsRoot() bool {
return os.Geteuid() == 0
}
func (env *environment) homeDir() string {
return os.Getenv("HOME")
}