mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
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:
@@ -176,6 +176,10 @@
|
||||
|
||||
[](powerline/powerline-dark.png)
|
||||
|
||||
## `powerline-icon`
|
||||
|
||||
[](powerline-icon/powerline-icon-dark.png)
|
||||
|
||||
## `powerline-light`
|
||||
|
||||
[](powerline-light/powerline-light.png)
|
||||
|
||||
@@ -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} "
|
||||
|
||||
Reference in New Issue
Block a user