1
0
Fork 0
vdotfiles/cli/.config/fish/functions/fish_prompt.add.pl.fish

15 lines
425 B
Fish
Raw Permalink Normal View History

2024-09-10 12:22:46 +03:00
function fish_prompt.add.pl
2023-08-21 20:58:02 +03:00
set -l color $argv[1]
set -l text $argv[2]
set -l sep ''
if test -n "$prompt_sep"
set sep (set_color $prev_color)$prompt_sep(set_color $color_fg)
set prev_color $color
end
if test -z "$prompt_string"
set prompt_string (set_color -b $color)(set_color $color_fg) $text
else
set -a prompt_string (set_color -b $color)$sep $text
end
end