···2222 command -q jj; and set -g jj_config_file ( jj config path --user )
2323 command -q keychain; and eval "$(keychain --quiet --eval github tangled)"
2424 command -q zoxide; and zoxide init fish | source
2525+ command -q starship; and starship init fish | source
25262627 # ๎น Load scripts
2728 for fish_sh in $__fish_config_dir/shell/*.fish
-20
.config/fish/functions/fish_prompt.fish
···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 ( pwd ) = $HOME/dotfiles
66- set icon (set_color red) "๎ป" (set_color normal)
77- else if test -e "build.zig"
88- set icon (set_color yellow) "๎ฉ" (set_color normal)
99- else if test -e "deno.json"
1010- set icon (set_color green) "๎" (set_color normal)
1111- else if test -e "gleam.toml"
1212- set icon (set_color magenta) "๏ " (set_color normal)
1313- else if test -e "package.json"
1414- set icon (set_color green) "๎ด" (set_color normal)
1515- else if test -e "pyproject.toml"
1616- set icon (set_color yellow) "๎" (set_color normal)
1717- end
1818-1919- echo -ns $icon " " $working_directory " ๎ญฐ "
2020-end
-36
.config/fish/functions/fish_right_prompt.fish
···11-function fish_right_prompt
22- set -l vcs_color normal
33- set -l vcs_icon ""
44- set -l vcs_text ""
55- set -l code_forge ""
66-77- # ๏ JJ Root
88- command -q jj
99- and set -l jj_root_dir ( jj root 2> /dev/null )
1010-1111- # ๎ Git Root
1212- command -q git
1313- and set -l git_root_dir ( git rev-parse --show-toplevel 2> /dev/null )
1414-1515- # Version control software
1616- if test -n "$jj_root_dir"
1717- set vcs_color blue
1818- set vcs_icon (set_color $vcs_color ) "๏ " ( set_color normal )
1919- else if test -n "$git_root_dir"
2020- set vcs_color red
2121- set vcs_icon (set_color $vcs_color ) "๎ " ( set_color normal )
2222- end
2323-2424- # Code forge
2525- if test -e "$jj_root_dir/.tangled"
2626- set code_forge "๓ฐณ "
2727- else if test -e "$jj_root_dir/.github"
2828- set code_forge "๎ "
2929- end
3030-3131- # Git prompt
3232- set -l git_commit_hash (set_color $vcs_color) (fish_git_prompt) (set_color normal)
3333- set vcs_text $git_commit_hash
3434-3535- echo -ns $code_forge $vcs_icon $vcs_text
3636-end