mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-19 21:17:31 -07:00
12 lines
129 B
Go
Executable file
12 lines
129 B
Go
Executable file
// +build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func (env *environment) isRunningAsRoot() bool {
|
|
return os.Geteuid() == 0
|
|
}
|