๐Ÿ”’ Backup for my config files
dotfiles
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use starship

kacaii af514501 42c8534c

+1 -56
+1
.config/fish/config.fish
··· 22 22 command -q jj; and set -g jj_config_file ( jj config path --user ) 23 23 command -q keychain; and eval "$(keychain --quiet --eval github tangled)" 24 24 command -q zoxide; and zoxide init fish | source 25 + command -q starship; and starship init fish | source 25 26 26 27 # ๎น Load scripts 27 28 for fish_sh in $__fish_config_dir/shell/*.fish
-20
.config/fish/functions/fish_prompt.fish
··· 1 - function fish_prompt --description "Customize your prompt ๎ช…" 2 - set -l icon "๏" 3 - set -l working_directory (set_color green) (prompt_pwd) (set_color normal) 4 - 5 - if test ( pwd ) = $HOME/dotfiles 6 - set icon (set_color red) "๎—ป" (set_color normal) 7 - else if test -e "build.zig" 8 - set icon (set_color yellow) "๎šฉ" (set_color normal) 9 - else if test -e "deno.json" 10 - set icon (set_color green) "๎Ÿ€" (set_color normal) 11 - else if test -e "gleam.toml" 12 - set icon (set_color magenta) "๏€…" (set_color normal) 13 - else if test -e "package.json" 14 - set icon (set_color green) "๎ด" (set_color normal) 15 - else if test -e "pyproject.toml" 16 - set icon (set_color yellow) "๎˜†" (set_color normal) 17 - end 18 - 19 - echo -ns $icon " " $working_directory " ๎ญฐ " 20 - end
-36
.config/fish/functions/fish_right_prompt.fish
··· 1 - function fish_right_prompt 2 - set -l vcs_color normal 3 - set -l vcs_icon "" 4 - set -l vcs_text "" 5 - set -l code_forge "" 6 - 7 - # ๏‚ JJ Root 8 - command -q jj 9 - and set -l jj_root_dir ( jj root 2> /dev/null ) 10 - 11 - # ๎™ Git Root 12 - command -q git 13 - and set -l git_root_dir ( git rev-parse --show-toplevel 2> /dev/null ) 14 - 15 - # Version control software 16 - if test -n "$jj_root_dir" 17 - set vcs_color blue 18 - set vcs_icon (set_color $vcs_color ) "๏‚ " ( set_color normal ) 19 - else if test -n "$git_root_dir" 20 - set vcs_color red 21 - set vcs_icon (set_color $vcs_color ) "๎™ " ( set_color normal ) 22 - end 23 - 24 - # Code forge 25 - if test -e "$jj_root_dir/.tangled" 26 - set code_forge "๓ฐณ† " 27 - else if test -e "$jj_root_dir/.github" 28 - set code_forge "๎™› " 29 - end 30 - 31 - # Git prompt 32 - set -l git_commit_hash (set_color $vcs_color) (fish_git_prompt) (set_color normal) 33 - set vcs_text $git_commit_hash 34 - 35 - echo -ns $code_forge $vcs_icon $vcs_text 36 - end