1
0
Fork 0

fish: get rid of starship, bring custom prompt back

This commit is contained in:
Von Random 2025-01-10 13:56:25 +02:00
parent 83bcd5952f
commit f323956d2b
10 changed files with 97 additions and 2 deletions

View file

@ -0,0 +1,14 @@
function fish_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