formatting

pull/554/head
romkatv 5 years ago
parent 38d717db26
commit e7d167bdb5

@ -618,6 +618,9 @@ _p9k_left_prompt_segment() {
_p9k_foreground $fg_color _p9k_foreground $fg_color
local fg=$_p9k__ret local fg=$_p9k__ret
local style=%b$bg$fg
local style_=${style//\}/\\\}}
_p9k_get_icon $1 LEFT_SEGMENT_SEPARATOR _p9k_get_icon $1 LEFT_SEGMENT_SEPARATOR
local sep=$_p9k__ret local sep=$_p9k__ret
_p9k_escape $_p9k__ret _p9k_escape $_p9k__ret
@ -642,9 +645,6 @@ _p9k_left_prompt_segment() {
_p9k_escape $_p9k__ret _p9k_escape $_p9k__ret
local end_sep_=$_p9k__ret local end_sep_=$_p9k__ret
local style=%b$bg$fg
local style_=${style//\}/\\\}}
_p9k_get_icon $1 WHITESPACE_BETWEEN_LEFT_SEGMENTS ' ' _p9k_get_icon $1 WHITESPACE_BETWEEN_LEFT_SEGMENTS ' '
local space=$_p9k__ret local space=$_p9k__ret
@ -854,6 +854,9 @@ _p9k_right_prompt_segment() {
_p9k_foreground $fg_color _p9k_foreground $fg_color
local fg=$_p9k__ret local fg=$_p9k__ret
local style=%b$bg$fg
local style_=${style//\}/\\\}}
_p9k_get_icon $1 RIGHT_SEGMENT_SEPARATOR _p9k_get_icon $1 RIGHT_SEGMENT_SEPARATOR
local sep=$_p9k__ret local sep=$_p9k__ret
_p9k_escape $_p9k__ret _p9k_escape $_p9k__ret
@ -861,6 +864,7 @@ _p9k_right_prompt_segment() {
_p9k_get_icon $1 RIGHT_SUBSEGMENT_SEPARATOR _p9k_get_icon $1 RIGHT_SUBSEGMENT_SEPARATOR
local subsep=$_p9k__ret local subsep=$_p9k__ret
[[ $subsep == *%* ]] && subsep+=$style
local icon_ local icon_
if [[ -n $4 ]]; then if [[ -n $4 ]]; then
@ -877,9 +881,6 @@ _p9k_right_prompt_segment() {
_p9k_escape $_p9k__ret _p9k_escape $_p9k__ret
local end_sep_=$_p9k__ret local end_sep_=$_p9k__ret
local style=%b$bg$fg
local style_=${style//\}/\\\}}
_p9k_get_icon $1 WHITESPACE_BETWEEN_RIGHT_SEGMENTS ' ' _p9k_get_icon $1 WHITESPACE_BETWEEN_RIGHT_SEGMENTS ' '
local space=$_p9k__ret local space=$_p9k__ret
@ -892,8 +893,6 @@ _p9k_right_prompt_segment() {
local right_space_=$_p9k__ret local right_space_=$_p9k__ret
[[ $right_space_ == *%* ]] && right_space_+=$style_ [[ $right_space_ == *%* ]] && right_space_+=$style_
[[ $subsep == *%* ]] && subsep+=$style
local w='<_p9k__w>' s='<_p9k__s>' local w='<_p9k__w>' s='<_p9k__s>'
local -i non_hermetic=0 local -i non_hermetic=0

Loading…
Cancel
Save