mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore: rename os properties
This commit is contained in:
parent
7af06ebe92
commit
df739cbb84
|
@ -56,7 +56,7 @@ const (
|
||||||
ShellInfo SegmentType = "shell"
|
ShellInfo SegmentType = "shell"
|
||||||
//Node writes which node version is currently active
|
//Node writes which node version is currently active
|
||||||
Node SegmentType = "node"
|
Node SegmentType = "node"
|
||||||
//OS write os specific icon
|
//Os write os specific icon
|
||||||
Os SegmentType = "os"
|
Os SegmentType = "os"
|
||||||
//Powerline writes it Powerline style
|
//Powerline writes it Powerline style
|
||||||
Powerline SegmentStyle = "powerline"
|
Powerline SegmentStyle = "powerline"
|
||||||
|
|
|
@ -6,11 +6,11 @@ type osInfo struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
//Macos the string to use for macOS
|
//MacOS the string/icon to use for MacOS
|
||||||
macOS Property = "macos"
|
MacOS Property = "macos"
|
||||||
//LinuxIcon the string to use for linux
|
//Linux the string/icon to use for linux
|
||||||
Linux Property = "linux"
|
Linux Property = "linux"
|
||||||
//WindowsIcon the icon to use for windows
|
//Windows the string/icon to use for windows
|
||||||
Windows Property = "windows"
|
Windows Property = "windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ func (n *osInfo) string() string {
|
||||||
case "windows":
|
case "windows":
|
||||||
return n.props.getString(Windows, "\uE62A")
|
return n.props.getString(Windows, "\uE62A")
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return n.props.getString(macOS, "\uF179")
|
return n.props.getString(MacOS, "\uF179")
|
||||||
case "linux":
|
case "linux":
|
||||||
return n.props.getString(Linux, "\uF17C")
|
return n.props.getString(Linux, "\uF17C")
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue