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