oh-my-posh/environment_unix.go

21 lines
349 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
// +build !windows
package main
import (
2020-11-04 23:56:12 -08:00
"errors"
2019-03-13 04:14:30 -07:00
"os"
)
func (env *environment) isRunningAsRoot() bool {
return os.Geteuid() == 0
}
func (env *environment) homeDir() string {
return os.Getenv("HOME")
}
2020-11-04 23:56:12 -08:00
func (env *environment) getWindowTitle(imageName, windowTitleRegex string) (string, error) {
2020-11-04 23:56:12 -08:00
return "", errors.New("not implemented")
}