oh-my-posh/src/segment_root.go

22 lines
336 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
package main
import "oh-my-posh/environment"
2019-03-13 04:14:30 -07:00
type root struct {
2022-01-01 11:08:08 -08:00
props Properties
env environment.Environment
2019-03-13 04:14:30 -07:00
}
func (rt *root) template() string {
return "\uF0E7"
2019-03-13 04:14:30 -07:00
}
func (rt *root) enabled() bool {
return rt.env.Root()
2019-03-13 04:14:30 -07:00
}
func (rt *root) init(props Properties, env environment.Environment) {
2019-03-13 04:14:30 -07:00
rt.props = props
rt.env = env
}