···9797function fish_prompt --description "Customize your prompt ๎ช "
9898 set -l icon "๏ "
9999100100- if test -e "./build.zig"
100100+ if test -e "build.zig"
101101 set icon (set_color yellow) "๎ฉ " (set_color normal)
102102- else if test -e "./gleam.toml"
102102+ else if test -e "gleam.toml"
103103 set icon (set_color magenta) "๏ " (set_color normal)
104104- else if test -e "./deno.json"
104104+ else if test -e "deno.json"
105105 set icon (set_color green) "๎ " (set_color normal)
106106- else if test -e "./package.json"
106106+ else if test -e "package.json"
107107 set icon (set_color green) "๎ด " (set_color normal)
108108- else if test -e "./pyproject.toml"
108108+ else if test -e "pyproject.toml"
109109 set icon (set_color yellow) "๎ " (set_color normal)
110110 end
111111···121121 return 1
122122 end
123123124124- if test -e "./.jj"
124124+ if command -q jj && test -e ".jj"
125125 set vcs_color blue
126126 set icon (set_color $vcs_color) "๓ฑ" (set_color normal)
127127- else if test -e "./.git"
127127+ else if command -q git && test -e ".git"
128128 set vcs_color red
129129 set icon (set_color $vcs_color) "๎" (set_color normal)
130130 end