replace starship with custom fish prompt

This commit is contained in:
2026-03-05 15:05:58 +00:00
parent 17563547d8
commit 77cae177b9
11 changed files with 373 additions and 174 deletions
+15
View File
@@ -0,0 +1,15 @@
# Build a prompt segment with rounded corners
function _prompt_segment
set content $argv[1]
set bg $argv[2]
set fg $argv[3]
test -z "$content"; and return
set bg (string replace -a "#" "" $bg)
set bg (string replace -a '"' '' $bg)
set fg (string replace -a "#" "" $fg)
set fg (string replace -a '"' '' $fg)
echo (set_color $bg)(set_color -b $bg $fg)" $content "(set_color normal)(set_color $bg)(set_color normal)
end