diff --git a/docs/docs/configuration.md b/docs/docs/configuration.md index be062551..7975f0ce 100644 --- a/docs/docs/configuration.md +++ b/docs/docs/configuration.md @@ -18,7 +18,7 @@ A really simple configuration could look like this. { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#61AFEF", "properties": { @@ -237,7 +237,7 @@ override or transparent background color using the segement's [foreground][fg] p "foreground": "#ffffff", "background": "#ffb300", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B0", "properties": { "user_info_separator": "@", "postfix": " " @@ -246,7 +246,7 @@ override or transparent background color using the segement's [foreground][fg] p { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#61AFEF", "properties": { @@ -260,7 +260,7 @@ override or transparent background color using the segement's [foreground][fg] p { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", "properties": { @@ -285,7 +285,7 @@ override or transparent background color using the segement's [foreground][fg] p "always_enabled": true, "error_color": "#e91e63", "color_background": true, - "prefix": "<#193549> " + "prefix": "<#193549>\uE0B0 " } } ] diff --git a/docs/docs/contributing-segment.md b/docs/docs/contributing-segment.md index 1086982f..7b370242 100644 --- a/docs/docs/contributing-segment.md +++ b/docs/docs/contributing-segment.md @@ -92,7 +92,7 @@ Display something new. { "type": "new", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", "properties": { diff --git a/docs/docs/segment-az.md b/docs/docs/segment-az.md index 5a53896d..2aa735c6 100644 --- a/docs/docs/segment-az.md +++ b/docs/docs/segment-az.md @@ -14,7 +14,7 @@ Display the currently active Azure subscription information. { "type": "az", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#000000", "background": "#9ec3f0", "properties": { diff --git a/docs/docs/segment-battery.md b/docs/docs/segment-battery.md index 655cec4b..6b252fcb 100644 --- a/docs/docs/segment-battery.md +++ b/docs/docs/segment-battery.md @@ -14,7 +14,7 @@ Battery displays the remaining power percentage for your battery. { "type": "battery", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", "properties": { diff --git a/docs/docs/segment-environment.md b/docs/docs/segment-environment.md index 1e3e4e38..5814544d 100644 --- a/docs/docs/segment-environment.md +++ b/docs/docs/segment-environment.md @@ -40,7 +40,7 @@ The segment will show when the value of the environment variable isn't empty. { "type": "envvar", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#0077c2", "properties": { diff --git a/docs/docs/segment-exit.md b/docs/docs/segment-exit.md index 1ca68d54..a25385c7 100644 --- a/docs/docs/segment-exit.md +++ b/docs/docs/segment-exit.md @@ -23,7 +23,7 @@ Displays the last exit code or that the last command failed based on the configu "always_enabled": true, "error_color": "#e91e63", "color_background": true, - "prefix": "<#193549> " + "prefix": "<#193549>\uE0B0 " } } ``` diff --git a/docs/docs/segment-git.md b/docs/docs/segment-git.md index 93f1f96f..84b6d5a2 100644 --- a/docs/docs/segment-git.md +++ b/docs/docs/segment-git.md @@ -19,7 +19,7 @@ Local changes can also shown by default using the following syntax for both the { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#ffeb3b", "properties": { diff --git a/docs/docs/segment-node.md b/docs/docs/segment-node.md index 3521ba29..dbbbb4a4 100644 --- a/docs/docs/segment-node.md +++ b/docs/docs/segment-node.md @@ -14,7 +14,7 @@ Display the currently active node version when a folder contains `.js` or `.ts` { "type": "node", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#6CA35E", "properties": { diff --git a/docs/docs/segment-path.md b/docs/docs/segment-path.md index 66abc382..1a23cc95 100644 --- a/docs/docs/segment-path.md +++ b/docs/docs/segment-path.md @@ -14,7 +14,7 @@ Display the current path. { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#61AFEF", "properties": { diff --git a/docs/docs/segment-python.md b/docs/docs/segment-python.md index 6e0d5837..31dbfed8 100644 --- a/docs/docs/segment-python.md +++ b/docs/docs/segment-python.md @@ -15,7 +15,7 @@ Supports conda, virtualenv and pyenv. { "type": "python", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", "properties": { diff --git a/docs/docs/segment-root.md b/docs/docs/segment-root.md index 0588aed5..98f82051 100644 --- a/docs/docs/segment-root.md +++ b/docs/docs/segment-root.md @@ -14,7 +14,7 @@ Show when the current user is root or when in an elevated shell (Windows). { "type": "root", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#111111", "background": "#ffff66", "properties": { diff --git a/docs/docs/segment-session.md b/docs/docs/segment-session.md index 05f115b6..f75e7312 100644 --- a/docs/docs/segment-session.md +++ b/docs/docs/segment-session.md @@ -17,7 +17,7 @@ Show the current user and host name. "foreground": "#ffffff", "background": "#c386f1", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B0", "properties": { "user_info_separator": "@", "postfix": " " diff --git a/docs/docs/segment-shell.md b/docs/docs/segment-shell.md index 8cc993bd..a64b7964 100644 --- a/docs/docs/segment-shell.md +++ b/docs/docs/segment-shell.md @@ -14,7 +14,7 @@ Show the current shell name (zsh, powershell, bash, ...). { "type": "shell", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#0077c2", "properties": { diff --git a/docs/docs/segment-spotify.md b/docs/docs/segment-spotify.md index e62227db..8c8b00b4 100644 --- a/docs/docs/segment-spotify.md +++ b/docs/docs/segment-spotify.md @@ -15,7 +15,7 @@ Be aware this can make the prompt a tad bit slower as it needs to get a response { "type": "spotify", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#1BD760", "properties": { diff --git a/segment_root.go b/segment_root.go index e2152ac3..e540c773 100644 --- a/segment_root.go +++ b/segment_root.go @@ -15,7 +15,7 @@ func (rt *root) enabled() bool { } func (rt *root) string() string { - return rt.props.getString(RootIcon, "#") + return rt.props.getString(RootIcon, "\uE20F") } func (rt *root) init(props *properties, env environmentInfo) { diff --git a/segment_test.go b/segment_test.go index d805dabd..20cf0b19 100755 --- a/segment_test.go +++ b/segment_test.go @@ -34,7 +34,7 @@ func TestParseTestSettings(t *testing.T) { { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#61AFEF", "properties": { diff --git a/settings.go b/settings.go index 065e6e7d..ab9fe828 100755 --- a/settings.go +++ b/settings.go @@ -77,42 +77,42 @@ func getDefaultSettings() *Settings { { Type: Root, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#ffe9aa", Foreground: "#100e23", }, { Type: Session, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#ffffff", Foreground: "#100e23", }, { Type: Path, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#91ddff", Foreground: "#100e23", }, { Type: Git, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#95ffa4", Foreground: "#100e23", }, { Type: Python, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#906cff", Foreground: "#100e23", }, { Type: Exit, Style: Powerline, - PowerlineSymbol: "", + PowerlineSymbol: "\uE0B0", Background: "#ff8080", Foreground: "#ffffff", }, diff --git a/themes/agnoster.json b/themes/agnoster.json index 9df3df91..f1da1fc5 100644 --- a/themes/agnoster.json +++ b/themes/agnoster.json @@ -7,17 +7,14 @@ { "type": "root", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", - "background": "#ffe9aa", - "properties": { - "root_icon": "襁" - } + "background": "#ffe9aa" }, { "type": "session", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#ffffff", "properties": { @@ -27,7 +24,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#91ddff", "properties" : { @@ -41,7 +38,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#95ffa4", "properties": { @@ -57,7 +54,7 @@ { "type": "python", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", "properties": { @@ -67,12 +64,9 @@ { "type": "exit", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", - "background": "#ff8080", - "properties": { - "prefix": "" - } + "background": "#ff8080" } ] } diff --git a/themes/agnosterplus.json b/themes/agnosterplus.json index eea153b5..6e43e05e 100644 --- a/themes/agnosterplus.json +++ b/themes/agnosterplus.json @@ -25,7 +25,7 @@ { "type": "session", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#ffffff", "properties": { @@ -36,7 +36,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#91ddff", "properties" : { @@ -50,7 +50,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#95ffa4", "properties": { diff --git a/themes/aliens.json b/themes/aliens.json index 8002c3da..1cc9a97b 100644 --- a/themes/aliens.json +++ b/themes/aliens.json @@ -10,7 +10,7 @@ "foreground": "#ffffff", "background": "#61AFEF", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B0", "properties": { "user_info_separator": "@", "postfix": " " @@ -19,7 +19,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#C678DD", "properties": { @@ -30,7 +30,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#95ffa4", "properties": { @@ -51,7 +51,7 @@ "leading_diamond": "", "trailing_diamond": "", "properties": { - "prefix": " " + "prefix": "\uE0B0 " } } ] diff --git a/themes/avit.json b/themes/avit.json index 40f4c091..795ea5d6 100644 --- a/themes/avit.json +++ b/themes/avit.json @@ -31,10 +31,7 @@ { "type": "root", "style": "plain", - "foreground": "#B5B50D", - "properties": { - "root_icon": "⚡" - } + "foreground": "#B5B50D" }, { "type": "exit", diff --git a/themes/darkblood.json b/themes/darkblood.json index fa1f0dd0..dccafd1f 100644 --- a/themes/darkblood.json +++ b/themes/darkblood.json @@ -36,7 +36,6 @@ "style": "plain", "foreground": "#ffffff", "properties": { - "root_icon": "⚡", "prefix": "<#CB4B16>[", "postfix": "<#CB4B16>]" } diff --git a/themes/emodipt.json b/themes/emodipt.json index bad04ce4..7383f7bf 100644 --- a/themes/emodipt.json +++ b/themes/emodipt.json @@ -17,10 +17,7 @@ { "type": "root", "style": "plain", - "foreground": "#B5B50D", - "properties": { - "root_icon": "⚡" - } + "foreground": "#B5B50D" }, { "type": "path", diff --git a/themes/fish.json b/themes/fish.json index f3d8ed8e..2c846881 100644 --- a/themes/fish.json +++ b/themes/fish.json @@ -9,17 +9,13 @@ "style": "plain", "foreground": "#ffffff", "properties": { - "prefix": " ", "postfix": "" } }, { "type": "root", "style": "plain", - "foreground": "#100e23", - "properties": { - "root_icon": "襁" - } + "foreground": "#100e23" }, { "type": "session", @@ -40,7 +36,7 @@ "windows_registry_icon": "", "folder_separator_icon": "", "style": "short", - "prefix": " ", + "prefix": "\uE0B0 ", "postfix": " " } }, @@ -67,7 +63,7 @@ "foreground": "#007ACC", "properties": { "prefix": "", - "text": "" + "text": "\uE0B0" } } ] diff --git a/themes/honukai.json b/themes/honukai.json index c59d5fdb..42f40047 100644 --- a/themes/honukai.json +++ b/themes/honukai.json @@ -71,8 +71,8 @@ "style": "plain", "foreground": "#CECE04", "properties": { - "prefix": "", - "root_icon": "襁" + "prefix": "" + } }, { @@ -87,10 +87,7 @@ { "type": "exit", "style": "plain", - "foreground": "#CB4B16", - "properties": { - "prefix": "" - } + "foreground": "#CB4B16" }, { "type": "text", diff --git a/themes/jandedobbeleer.json b/themes/jandedobbeleer.json index 127b70f7..8bf7603a 100644 --- a/themes/jandedobbeleer.json +++ b/themes/jandedobbeleer.json @@ -10,7 +10,7 @@ "foreground": "#ffffff", "background": "#c386f1", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B0", "properties": { "user_info_separator": "@", "postfix": " " @@ -19,7 +19,7 @@ { "type": "spotify", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#1BD760", "properties": { @@ -31,7 +31,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#ff479c", "properties": { @@ -42,7 +42,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#fffb38", "properties": { @@ -70,7 +70,7 @@ { "type": "battery", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#f36943", "properties": { @@ -88,7 +88,7 @@ { "type": "node", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#6CA35E", "properties": { @@ -98,7 +98,7 @@ { "type": "root", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#111111", "background": "#ffff66", "properties": { @@ -108,7 +108,7 @@ { "type": "shell", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#0077c2", "properties": { @@ -118,7 +118,7 @@ { "type": "root", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#ffff66" }, @@ -134,7 +134,7 @@ "always_enabled": true, "error_color": "#f1184c", "color_background": true, - "prefix": " " + "prefix": "\uE0B0 " } } ] diff --git a/themes/paradox.json b/themes/paradox.json index a33ef949..b827d6d3 100644 --- a/themes/paradox.json +++ b/themes/paradox.json @@ -7,17 +7,14 @@ { "type": "root", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", - "background": "#ffe9aa", - "properties": { - "root_icon": "襁" - } + "background": "#ffe9aa" }, { "type": "session", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#ffffff", "properties": { @@ -27,7 +24,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#91ddff", "properties": { @@ -41,7 +38,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#95ffa4", "properties": { @@ -57,7 +54,7 @@ { "type": "python", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", "properties": { @@ -67,11 +64,11 @@ { "type": "exit", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#ff8080", "properties": { - "prefix": "" + "prefix": "\uE20F" } } ] diff --git a/themes/powerlevel10k_classic.json b/themes/powerlevel10k_classic.json index f109b659..17812eca 100644 --- a/themes/powerlevel10k_classic.json +++ b/themes/powerlevel10k_classic.json @@ -17,10 +17,7 @@ "type": "root", "style": "plain", "foreground": "#26C6DA", - "background": "#546E7A", - "properties": { - "root_icon": "襁" - } + "background": "#546E7A" }, { "type": "path", @@ -55,7 +52,7 @@ "foreground": "#546E7A", "background": "transparent", "properties": { - "text": "", + "text": "\uE0B0", "prefix": "", "postfix": "" } diff --git a/themes/powerline.json b/themes/powerline.json index 323e4360..93394a18 100644 --- a/themes/powerline.json +++ b/themes/powerline.json @@ -7,10 +7,7 @@ { "type": "root", "style": "plain", - "foreground": "#FFEE58", - "properties": { - "root_icon": "襁" - } + "foreground": "#FFEE58" }, { "type": "session", @@ -23,7 +20,7 @@ { "type": "path", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#91ddff", "properties" : { @@ -34,7 +31,7 @@ { "type": "git", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#95ffa4", "properties": { @@ -50,7 +47,7 @@ { "type": "python", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", "properties": { @@ -60,11 +57,11 @@ { "type": "exit", "style": "powerline", - "powerline_symbol": "", + "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#ff8080", "properties": { - "prefix": "" + "prefix": "\uE20F" } } ] diff --git a/themes/sorin.json b/themes/sorin.json index 9cababae..703adf3a 100644 --- a/themes/sorin.json +++ b/themes/sorin.json @@ -7,18 +7,12 @@ { "type": "exit", "style": "plain", - "foreground": "#CB4B16", - "properties": { - "prefix": "" - } + "foreground": "#CB4B16" }, { "type": "root", "style": "plain", - "foreground": "#CECE04", - "properties": { - "root_icon": "襁" - } + "foreground": "#CECE04" }, { "type": "session",