···11+function fish_prompt --description "Customize your prompt ๎ช "
22+ set -l icon "๏ "
33+ set -l working_directory (set_color green) (prompt_pwd) (set_color normal)
44+55+ if test -e "build.zig"
66+ set icon (set_color yellow) "๎ฉ " (set_color normal)
77+ else if test -e "deno.json"
88+ set icon (set_color green) "๎ " (set_color normal)
99+ else if test -e "gleam.toml"
1010+ set icon (set_color magenta) "๏ " (set_color normal)
1111+ else if test -e "package.json"
1212+ set icon (set_color green) "๎ด " (set_color normal)
1313+ else if test -e "pyproject.toml"
1414+ set icon (set_color yellow) "๎ " (set_color normal)
1515+ end
1616+1717+ echo -ns $icon $working_directory " ๏ "
1818+end
+13
fish/functions/fish_right_prompt.fish
···11+function fish_right_prompt
22+ set -l vcs_color normal
33+44+ if command -q jj && test -e ".jj"
55+ set vcs_color blue
66+ set icon (set_color $vcs_color) "๓ฑ" (set_color normal)
77+ else if command -q git && test -e ".git"
88+ set vcs_color red
99+ set icon (set_color $vcs_color) "๎" (set_color normal)
1010+ end
1111+1212+ echo -ns $icon (set_color $vcs_color) (fish_git_prompt) (set_color normal)
1313+end