Skip to content

Commit

Permalink
refactor: replace path icons
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Oct 16, 2020
1 parent dd86c48 commit e0e79f5
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 29 deletions.
1 change: 0 additions & 1 deletion docs/docs/segment-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Display the current path.
"foreground": "#ffffff",
"background": "#61AFEF",
"properties": {
"prefix": "",
"style": "folder"
}
}
Expand Down
4 changes: 2 additions & 2 deletions segment_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "~"),
}
Expand Down
7 changes: 3 additions & 4 deletions themes/agnoster.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
7 changes: 3 additions & 4 deletions themes/agnosterplus.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/aliens.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"foreground": "#ffffff",
"background": "#C678DD",
"properties": {
"home_icon": "~",
"style": "short"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/avit.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"foreground": "#ffffff",
"properties": {
"prefix": "",
"home_icon": "~",
"style": "short"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/darkblood.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"style": "plain",
"foreground": "#ffffff",
"properties": {
"home_icon": "~",
"style": "short",
"prefix": "<#CB4B16>┖[</>",
"postfix": "<#CB4B16>]></>"
Expand Down
1 change: 0 additions & 1 deletion themes/emodipt.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"style": "plain",
"foreground": "#61AFEF",
"properties": {
"home_icon": "~",
"style": "agnoster",
"postfix": " on"
}
Expand Down
4 changes: 1 addition & 3 deletions themes/fish.json
Original file line number Diff line number Diff line change
Expand Up @@ -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</> ",
Expand Down
4 changes: 1 addition & 3 deletions themes/honukai.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"style": "plain",
"foreground": "#0973C0",
"properties": {
"home_icon": "~",
"folder_icon": "",
"windows_registry_icon": "",
"folder_icon": "\uF115",
"folder_separator_icon": "",
"style": "short"
}
Expand Down
4 changes: 1 addition & 3 deletions themes/paradox.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"foreground": "#100e23",
"background": "#91ddff",
"properties": {
"home_icon": "~",
"folder_icon": "",
"windows_registry_icon": "",
"folder_icon": "\uF115",
"folder_separator_icon": "",
"style": "short"
}
Expand Down
1 change: 0 additions & 1 deletion themes/powerlevel10k_classic.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"home_icon": "~",
"style": "short",
"postfix": " "
}
Expand Down
1 change: 0 additions & 1 deletion themes/powerlevel10k_lean.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"foreground": "#77E4F7",
"properties": {
"prefix": "",
"home_icon": "~",
"style": "short"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/powerline.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"foreground": "#100e23",
"background": "#91ddff",
"properties" : {
"home_icon": "~",
"style": "short"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/sorin.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"style": "plain",
"foreground": "#0973C0",
"properties": {
"home_icon": "~",
"style": "short"
}
},
Expand Down
1 change: 0 additions & 1 deletion themes/star.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"style": "plain",
"foreground": "#55B9C4",
"properties": {
"home_icon": "~",
"style": "folder",
"prefix": ""
}
Expand Down

0 comments on commit e0e79f5

Please sign in to comment.