Skip to content

Commit e0e79f5

Browse files
refactor: replace path icons
1 parent dd86c48 commit e0e79f5

16 files changed

+11
-29
lines changed

docs/docs/segment-path.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Display the current path.
1818
"foreground": "#ffffff",
1919
"background": "#61AFEF",
2020
"properties": {
21-
"prefix": "",
2221
"style": "folder"
2322
}
2423
}

segment_path.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func (pt *path) init(props *properties, env environmentInfo) {
5858
func (pt *path) getShortPath() string {
5959
pwd := pt.env.getcwd()
6060
mappedLocations := map[string]string{
61-
"HKCU:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"),
62-
"HKLM:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"),
61+
"HKCU:": pt.props.getString(WindowsRegistryIcon, "\uE0B1"),
62+
"HKLM:": pt.props.getString(WindowsRegistryIcon, "\uE0B1"),
6363
"Microsoft.PowerShell.Core\\FileSystem::": "",
6464
pt.env.homeDir(): pt.props.getString(HomeIcon, "~"),
6565
}

themes/agnoster.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
"foreground": "#100e23",
2929
"background": "#91ddff",
3030
"properties" : {
31-
"home_icon": "",
32-
"folder_icon": "",
33-
"windows_registry_icon": "",
34-
"folder_separator_icon": "",
31+
"home_icon": "\uF7DB",
32+
"folder_icon": "\uF115",
33+
"folder_separator_icon": " \uE0B1 ",
3534
"style": "agnoster"
3635
}
3736
},

themes/agnosterplus.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
"foreground": "#100e23",
4141
"background": "#91ddff",
4242
"properties" : {
43-
"home_icon": "",
44-
"folder_icon": "",
45-
"windows_registry_icon": "",
46-
"folder_separator_icon": "",
43+
"home_icon": "\uF7DB",
44+
"folder_icon": "\uF115",
45+
"folder_separator_icon": " \uE0B1 ",
4746
"style": "agnoster"
4847
}
4948
},

themes/aliens.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"foreground": "#ffffff",
2424
"background": "#C678DD",
2525
"properties": {
26-
"home_icon": "~",
2726
"style": "short"
2827
}
2928
},

themes/avit.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"foreground": "#ffffff",
1111
"properties": {
1212
"prefix": "",
13-
"home_icon": "~",
1413
"style": "short"
1514
}
1615
},

themes/darkblood.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"style": "plain",
5757
"foreground": "#ffffff",
5858
"properties": {
59-
"home_icon": "~",
6059
"style": "short",
6160
"prefix": "<#CB4B16>┖[</>",
6261
"postfix": "<#CB4B16>]></>"

themes/emodipt.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"style": "plain",
2525
"foreground": "#61AFEF",
2626
"properties": {
27-
"home_icon": "~",
2827
"style": "agnoster",
2928
"postfix": " on"
3029
}

themes/fish.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
"foreground": "#ffffff",
3232
"background": "#007ACC",
3333
"properties" : {
34-
"home_icon": "~",
35-
"folder_icon": "",
36-
"windows_registry_icon": "",
34+
"folder_icon": "\uF115",
3735
"folder_separator_icon": "",
3836
"style": "short",
3937
"prefix": "<transparent>\uE0B0</> ",

themes/honukai.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"style": "plain",
2121
"foreground": "#0973C0",
2222
"properties": {
23-
"home_icon": "~",
24-
"folder_icon": "",
25-
"windows_registry_icon": "",
23+
"folder_icon": "\uF115",
2624
"folder_separator_icon": "",
2725
"style": "short"
2826
}

0 commit comments

Comments
 (0)