oh-my-posh/src/segment_root.go

20 lines
279 B
Go
Raw Normal View History

2019-03-13 04:14:30 -07:00
package main
type root struct {
2022-01-01 11:08:08 -08:00
props Properties
2022-01-01 11:09:52 -08:00
env 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
}
2022-01-01 11:09:52 -08:00
func (rt *root) init(props Properties, env Environment) {
2019-03-13 04:14:30 -07:00
rt.props = props
rt.env = env
}