oh-my-posh/environment_unix.go
2020-11-12 14:04:52 +01:00

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")
}