mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
56468baf4c
relates to #55
16 lines
201 B
Go
Executable file
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")
|
|
}
|