Skip to content

Commit

Permalink
themes/powerline-icon: Fix icon for successful execution (#516)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
TheWatcherMultiversal authored Jan 18, 2024
1 parent 632fd71 commit 4738fef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions themes/THEMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion themes/powerline/powerline.base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} "
Expand Down

0 comments on commit 4738fef

Please sign in to comment.