diff --git a/segment.go b/segment.go index 00af0a88..c837d53c 100644 --- a/segment.go +++ b/segment.go @@ -56,7 +56,7 @@ const ( ShellInfo SegmentType = "shell" //Node writes which node version is currently active Node SegmentType = "node" - //OS write os specific icon + //Os write os specific icon Os SegmentType = "os" //Powerline writes it Powerline style Powerline SegmentStyle = "powerline" diff --git a/segment_os.go b/segment_os.go index 626a614e..68cc5892 100644 --- a/segment_os.go +++ b/segment_os.go @@ -1,16 +1,16 @@ package main type osInfo struct { - props *properties - env environmentInfo + props *properties + env environmentInfo } const ( - //Macos the string to use for macOS - macOS Property = "macos" - //LinuxIcon the string to use for linux + //MacOS the string/icon to use for MacOS + MacOS Property = "macos" + //Linux the string/icon to use for linux Linux Property = "linux" - //WindowsIcon the icon to use for windows + //Windows the string/icon to use for windows Windows Property = "windows" ) @@ -24,7 +24,7 @@ func (n *osInfo) string() string { case "windows": return n.props.getString(Windows, "\uE62A") case "darwin": - return n.props.getString(macOS, "\uF179") + return n.props.getString(MacOS, "\uF179") case "linux": return n.props.getString(Linux, "\uF17C") default: @@ -35,4 +35,4 @@ func (n *osInfo) string() string { func (n *osInfo) init(props *properties, env environmentInfo) { n.props = props n.env = env -} \ No newline at end of file +}