mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
refactor: replace path icons
This commit is contained in:
parent
dd86c486dd
commit
e0e79f59f0
|
@ -18,7 +18,6 @@ Display the current path.
|
|||
"foreground": "#ffffff",
|
||||
"background": "#61AFEF",
|
||||
"properties": {
|
||||
"prefix": " ",
|
||||
"style": "folder"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,8 +58,8 @@ func (pt *path) init(props *properties, env environmentInfo) {
|
|||
func (pt *path) getShortPath() string {
|
||||
pwd := pt.env.getcwd()
|
||||
mappedLocations := map[string]string{
|
||||
"HKCU:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"),
|
||||
"HKLM:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"),
|
||||
"HKCU:": pt.props.getString(WindowsRegistryIcon, "\uE0B1"),
|
||||
"HKLM:": pt.props.getString(WindowsRegistryIcon, "\uE0B1"),
|
||||
"Microsoft.PowerShell.Core\\FileSystem::": "",
|
||||
pt.env.homeDir(): pt.props.getString(HomeIcon, "~"),
|
||||
}
|
||||
|
|
|
@ -28,10 +28,9 @@
|
|||
"foreground": "#100e23",
|
||||
"background": "#91ddff",
|
||||
"properties" : {
|
||||
"home_icon": "",
|
||||
"folder_icon": "",
|
||||
"windows_registry_icon": "",
|
||||
"folder_separator_icon": " ",
|
||||
"home_icon": "\uF7DB",
|
||||
"folder_icon": "\uF115",
|
||||
"folder_separator_icon": " \uE0B1 ",
|
||||
"style": "agnoster"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -40,10 +40,9 @@
|
|||
"foreground": "#100e23",
|
||||
"background": "#91ddff",
|
||||
"properties" : {
|
||||
"home_icon": "",
|
||||
"folder_icon": "",
|
||||
"windows_registry_icon": "",
|
||||
"folder_separator_icon": " ",
|
||||
"home_icon": "\uF7DB",
|
||||
"folder_icon": "\uF115",
|
||||
"folder_separator_icon": " \uE0B1 ",
|
||||
"style": "agnoster"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
"foreground": "#ffffff",
|
||||
"background": "#C678DD",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "short"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
"foreground": "#ffffff",
|
||||
"properties": {
|
||||
"prefix": "",
|
||||
"home_icon": "~",
|
||||
"style": "short"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
"style": "plain",
|
||||
"foreground": "#ffffff",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "short",
|
||||
"prefix": "<#CB4B16>┖[</>",
|
||||
"postfix": "<#CB4B16>]></>"
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
"style": "plain",
|
||||
"foreground": "#61AFEF",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "agnoster",
|
||||
"postfix": " on"
|
||||
}
|
||||
|
|
|
@ -31,9 +31,7 @@
|
|||
"foreground": "#ffffff",
|
||||
"background": "#007ACC",
|
||||
"properties" : {
|
||||
"home_icon": "~",
|
||||
"folder_icon": "",
|
||||
"windows_registry_icon": "",
|
||||
"folder_icon": "\uF115",
|
||||
"folder_separator_icon": "",
|
||||
"style": "short",
|
||||
"prefix": "<transparent>\uE0B0</> ",
|
||||
|
|
|
@ -20,9 +20,7 @@
|
|||
"style": "plain",
|
||||
"foreground": "#0973C0",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"folder_icon": "",
|
||||
"windows_registry_icon": "",
|
||||
"folder_icon": "\uF115",
|
||||
"folder_separator_icon": "",
|
||||
"style": "short"
|
||||
}
|
||||
|
|
|
@ -28,9 +28,7 @@
|
|||
"foreground": "#100e23",
|
||||
"background": "#91ddff",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"folder_icon": "",
|
||||
"windows_registry_icon": "",
|
||||
"folder_icon": "\uF115",
|
||||
"folder_separator_icon": "",
|
||||
"style": "short"
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
"foreground": "#26C6DA",
|
||||
"background": "#546E7A",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "short",
|
||||
"postfix": " "
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
"foreground": "#77E4F7",
|
||||
"properties": {
|
||||
"prefix": "",
|
||||
"home_icon": "~",
|
||||
"style": "short"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
"foreground": "#100e23",
|
||||
"background": "#91ddff",
|
||||
"properties" : {
|
||||
"home_icon": "~",
|
||||
"style": "short"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
"style": "plain",
|
||||
"foreground": "#0973C0",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "short"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
"style": "plain",
|
||||
"foreground": "#55B9C4",
|
||||
"properties": {
|
||||
"home_icon": "~",
|
||||
"style": "folder",
|
||||
"prefix": ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue