oh-my-posh/segment_shell.go

20 lines
289 B
Go
Raw Normal View History

2020-09-15 04:44:53 -07:00
package main
type shell struct {
props *properties
env environmentInfo
}
func (s *shell) enabled() bool {
return true
}
func (s *shell) string() string {
2020-09-24 10:11:56 -07:00
return s.env.getShellName()
2020-09-15 04:44:53 -07:00
}
func (s *shell) init(props *properties, env environmentInfo) {
s.props = props
s.env = env
}