oh-my-posh/environment_unix.go
2020-09-12 08:57:18 +02:00

12 lines
129 B
Go
Executable file

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