mirror of
https://github.com/lowne/fish-prompt-metro.git
synced 2024-10-27 20:34:12 +00:00
9 lines
257 B
Fish
9 lines
257 B
Fish
function segment -a fg bg text -d "Add prompt segment"
|
|
if test -z "$segment_color"
|
|
set segment_color normal
|
|
end
|
|
|
|
set -g segment (set_color $fg -b $bg)"$text"(set_color $bg -b $segment_color)"$segment"
|
|
set -g segment_color $bg
|
|
end
|