mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
formatting
This commit is contained in:
parent
38d717db26
commit
e7d167bdb5
1 changed files with 16 additions and 17 deletions
|
@ -618,6 +618,9 @@ _p9k_left_prompt_segment() {
|
|||
_p9k_foreground $fg_color
|
||||
local fg=$_p9k__ret
|
||||
|
||||
local style=%b$bg$fg
|
||||
local style_=${style//\}/\\\}}
|
||||
|
||||
_p9k_get_icon $1 LEFT_SEGMENT_SEPARATOR
|
||||
local sep=$_p9k__ret
|
||||
_p9k_escape $_p9k__ret
|
||||
|
@ -642,9 +645,6 @@ _p9k_left_prompt_segment() {
|
|||
_p9k_escape $_p9k__ret
|
||||
local end_sep_=$_p9k__ret
|
||||
|
||||
local style=%b$bg$fg
|
||||
local style_=${style//\}/\\\}}
|
||||
|
||||
_p9k_get_icon $1 WHITESPACE_BETWEEN_LEFT_SEGMENTS ' '
|
||||
local space=$_p9k__ret
|
||||
|
||||
|
@ -854,6 +854,9 @@ _p9k_right_prompt_segment() {
|
|||
_p9k_foreground $fg_color
|
||||
local fg=$_p9k__ret
|
||||
|
||||
local style=%b$bg$fg
|
||||
local style_=${style//\}/\\\}}
|
||||
|
||||
_p9k_get_icon $1 RIGHT_SEGMENT_SEPARATOR
|
||||
local sep=$_p9k__ret
|
||||
_p9k_escape $_p9k__ret
|
||||
|
@ -861,6 +864,7 @@ _p9k_right_prompt_segment() {
|
|||
|
||||
_p9k_get_icon $1 RIGHT_SUBSEGMENT_SEPARATOR
|
||||
local subsep=$_p9k__ret
|
||||
[[ $subsep == *%* ]] && subsep+=$style
|
||||
|
||||
local icon_
|
||||
if [[ -n $4 ]]; then
|
||||
|
@ -877,9 +881,6 @@ _p9k_right_prompt_segment() {
|
|||
_p9k_escape $_p9k__ret
|
||||
local end_sep_=$_p9k__ret
|
||||
|
||||
local style=%b$bg$fg
|
||||
local style_=${style//\}/\\\}}
|
||||
|
||||
_p9k_get_icon $1 WHITESPACE_BETWEEN_RIGHT_SEGMENTS ' '
|
||||
local space=$_p9k__ret
|
||||
|
||||
|
@ -892,8 +893,6 @@ _p9k_right_prompt_segment() {
|
|||
local right_space_=$_p9k__ret
|
||||
[[ $right_space_ == *%* ]] && right_space_+=$style_
|
||||
|
||||
[[ $subsep == *%* ]] && subsep+=$style
|
||||
|
||||
local w='<_p9k__w>' s='<_p9k__s>'
|
||||
|
||||
local -i non_hermetic=0
|
||||
|
|
Loading…
Reference in a new issue