2020-04-21 21:52:24 +03:00
|
|
|
function lean_right_prompt
|
2020-04-30 00:52:58 +03:00
|
|
|
echo -n ' '
|
2020-04-29 01:43:22 +03:00
|
|
|
|
2020-04-28 01:37:08 +03:00
|
|
|
for item in lean_{$lean_right_prompt_items}
|
|
|
|
if test -n "$$item"
|
2020-04-30 00:52:58 +03:00
|
|
|
set -l colorName $item'_color'
|
|
|
|
set -l colorNameBoldFlag $colorName'_bold'
|
2020-04-29 01:43:22 +03:00
|
|
|
|
2020-04-30 00:52:58 +03:00
|
|
|
if test $colorNameBoldFlag = 'true'
|
2020-04-29 01:43:22 +03:00
|
|
|
set_color -o
|
|
|
|
end
|
2020-04-25 22:21:09 +03:00
|
|
|
set_color "$$colorName"
|
2020-04-30 00:52:58 +03:00
|
|
|
echo -n "$$item"' '
|
2020-04-25 22:21:09 +03:00
|
|
|
set_color normal
|
|
|
|
end
|
2020-04-25 07:32:21 +03:00
|
|
|
end
|
2020-04-21 21:52:24 +03:00
|
|
|
end
|