1
0
Fork 0
vdotfiles/cli/.config/fish/functions/prompt.add.fish
2023-08-21 20:58:02 +03:00

14 lines
318 B
Fish

function prompt.add
set -l text $argv[1]
set -l color $argv[2]
if test -n "$color"
set value (set_color $color)$text(set_color normal)
else
set value $text
end
if test -z "$prompt_string"
set prompt_string $value
else
set -a prompt_string $value
end
end