diff --git a/Themes/jandedobbeleer.json b/Themes/jandedobbeleer.json index 7d445eaa..af5b4cbb 100644 --- a/Themes/jandedobbeleer.json +++ b/Themes/jandedobbeleer.json @@ -92,7 +92,7 @@ "trailing_diamond": "", "properties": { "error_icon": "", - "display_error_code": false, + "display_exit_code": false, "always_enabled": true, "error_color": "#e91e63", "color_background": true, diff --git a/Themes/material.json b/Themes/material.json index cea8a9db..7cc91062 100644 --- a/Themes/material.json +++ b/Themes/material.json @@ -37,7 +37,7 @@ "foreground": "#DCB977", "properties": { "error_icon": "✗", - "display_error_code": false + "display_exit_code": false } }, { diff --git a/Themes/pararussel.json b/Themes/pararussel.json index 6eb8345a..db5f97a0 100644 --- a/Themes/pararussel.json +++ b/Themes/pararussel.json @@ -38,7 +38,7 @@ "foreground": "#DCB977", "properties": { "error_icon": "✗", - "display_error_code": false + "display_exit_code": false } } ] diff --git a/Themes/powerlevel10k_classic.json b/Themes/powerlevel10k_classic.json index 5827ce94..e30a18f3 100644 --- a/Themes/powerlevel10k_classic.json +++ b/Themes/powerlevel10k_classic.json @@ -96,7 +96,7 @@ "error_icon": "❯", "always_enabled": true, "error_color": "#FF5252", - "display_error_code": false + "display_exit_code": false } } ] diff --git a/Themes/robbyrussel.json b/Themes/robbyrussel.json index 698f6bad..24930758 100644 --- a/Themes/robbyrussel.json +++ b/Themes/robbyrussel.json @@ -38,7 +38,7 @@ "foreground": "#DCB977", "properties": { "error_icon": "✗", - "display_error_code": false + "display_exit_code": false } } ] diff --git a/Themes/zash.json b/Themes/zash.json index 3980ffa4..437450ce 100644 --- a/Themes/zash.json +++ b/Themes/zash.json @@ -50,7 +50,7 @@ "foreground": "#DCB977", "properties": { "error_icon": "✗", - "display_error_code": false, + "display_exit_code": false, "postfix": "" } } diff --git a/segment_exit.go b/segment_exit.go index da4501b4..c4bca1c0 100644 --- a/segment_exit.go +++ b/segment_exit.go @@ -10,8 +10,8 @@ type exit struct { const ( //ErrorIcon represents icon to display in case of error ErrorIcon Property = "error_icon" - //DisplayErrorCode shows or hides the error code - DisplayErrorCode Property = "display_error_code" + //DisplayExitCode shows or hides the error code + DisplayExitCode Property = "display_exit_code" //AlwaysEnabled decides whether or not to always display the exitcode info AlwaysEnabled Property = "always_enabled" //ErrorColor specify a different foreground color for the error text when using always_show = true @@ -48,7 +48,7 @@ func (e *exit) getFormattedText() string { } func (e *exit) getMeaningFromExitCode() string { - if !e.props.getBool(DisplayErrorCode, true) { + if !e.props.getBool(DisplayExitCode, true) { return "" } switch e.env.lastErrorCode() {