themes/powerline-icon: Fix icon for successful execution (#516)

* themes/powerline-icon: Correct error

An error in one of the powerline functions has been corrected, which
was preventing the display of the icon for a successfully executed
command.

* themes/THEMES: Add powerline-icon
This commit is contained in:
TheWatcherMultiversal
2024-01-18 19:13:58 +09:00
committed by GitHub
parent 632fd71fc3
commit 4738fef72c
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -176,6 +176,10 @@
[![](powerline/powerline-dark.png)](powerline/powerline-dark.png)
## `powerline-icon`
[![](powerline-icon/powerline-icon-dark.png)](powerline-icon/powerline-icon-dark.png)
## `powerline-light`
[![](powerline-light/powerline-light.png)](powerline-light/powerline-light.png)
+5 -1
View File
@@ -192,7 +192,11 @@ function __powerline_prompt_command {
local info="$(__powerline_${segment}_prompt)"
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
done
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment $(__powerline_last_status_prompt ${last_status})
## info status prompt ##
local info="$(__powerline_last_status_prompt ${last_status})"
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
[[ -n "${LEFT_PROMPT}" ]] && LEFT_PROMPT+="$(set_color ${LAST_SEGMENT_COLOR} -)${separator_char}${_omb_prompt_normal}"
PS1="${LEFT_PROMPT} "