mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
refactor: replace root icon
This commit is contained in:
parent
6e89a0b878
commit
0f7b3cffb7
|
@ -18,7 +18,7 @@ Show when the current user is root or when in an elevated shell (Windows).
|
||||||
"foreground": "#111111",
|
"foreground": "#111111",
|
||||||
"background": "#ffff66",
|
"background": "#ffff66",
|
||||||
"properties": {
|
"properties": {
|
||||||
"root_icon": ""
|
"root_icon": "\uF0E7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -15,7 +15,7 @@ func (rt *root) enabled() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rt *root) string() string {
|
func (rt *root) string() string {
|
||||||
return rt.props.getString(RootIcon, "\uE20F")
|
return rt.props.getString(RootIcon, "\uF0E7")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rt *root) init(props *properties, env environmentInfo) {
|
func (rt *root) init(props *properties, env environmentInfo) {
|
||||||
|
|
|
@ -72,7 +72,6 @@
|
||||||
"foreground": "#CECE04",
|
"foreground": "#CECE04",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -80,7 +79,6 @@
|
||||||
"style": "plain",
|
"style": "plain",
|
||||||
"foreground": "#100e23",
|
"foreground": "#100e23",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": "",
|
|
||||||
"prefix": " "
|
"prefix": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -95,16 +95,6 @@
|
||||||
"prefix": " "
|
"prefix": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "root",
|
|
||||||
"style": "powerline",
|
|
||||||
"powerline_symbol": "\uE0B0",
|
|
||||||
"foreground": "#111111",
|
|
||||||
"background": "#ffff66",
|
|
||||||
"properties": {
|
|
||||||
"root_icon": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
|
|
Loading…
Reference in a new issue