mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08: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
|
|
}
|