mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
21 lines
349 B
Go
21 lines
349 B
Go
// +build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
)
|
|
|
|
func (env *environment) isRunningAsRoot() bool {
|
|
return os.Geteuid() == 0
|
|
}
|
|
|
|
func (env *environment) homeDir() string {
|
|
return os.Getenv("HOME")
|
|
}
|
|
|
|
func (env *environment) getWindowTitle(imageName, windowTitleRegex string) (string, error) {
|
|
return "", errors.New("not implemented")
|
|
}
|