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

Configure Feed

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

bring back prompts

Kacaii 107a674b c277f993

+94 -89
+1 -86
config.fish
··· 1 1 if status is-interactive 2 + source $__fish_config_dir/abbr.fish 2 3 3 4 set -g fish_greeting "" 4 5 set fish_color_valid_path ··· 25 26 fzf --fish | source 26 27 zoxide init fish | source 27 28 28 - abbr fcg $EDITOR $__fish_config_dir/config.fish 29 - abbr tcg $EDITOR $tmux_config_file 30 - 31 29 set -l ensure_fish_add_path \ 32 30 $HOME/.bun/bin \ 33 31 $HOME/.cargo/bin \ ··· 42 40 fish_add_path $required_path 43 41 end 44 42 45 - # Default 46 - abbr c clear 47 - abbr fcc fish_clipboard_copy 48 - abbr ll "eza -l --icons=always" 49 - abbr lla "eza -la --icons=always" 50 - abbr ls "eza --icons=always" 51 - abbr man batman 52 - abbr pbat prettybat 53 - abbr v nvim 54 - 55 - # ๎š FZF 56 - abbr fzf "fzf --preview='bat --color=always {}'" 57 - 58 - # ๎™ Git 59 - abbr g git 60 - abbr gc "ghq get" 61 - abbr gg lazygit 62 - abbr gp "git pull" 63 - 64 - # ๎กง Poetry 65 - abbr pea "poetry env activate | source" 66 - abbr ped deactivate 67 - abbr prs "poetry run start" 68 - 69 - # ๏€… Gleam 70 - abbr gn "gleam new" 71 - abbr gr "gleam run" 72 - abbr gt "gleam test" 73 - 74 - abbr gwr 'watchexec --restart --verbose --wrap-process=session --stop-signal SIGTERM \ 75 - --exts gleam --debounce 500ms --watch src/ -- \ 76 - "clear; gleam run"' 77 - 78 - abbr gwt 'watchexec --restart --verbose --wrap-process=session --stop-signal SIGTERM \ 79 - --exts gleam --debounce 500ms --watch test/ -- \ 80 - "clear; gleam test"' 81 - 82 - # ๎šฉ Zig 83 - abbr zb "zig build" 84 - abbr zbr "zig build run" 85 - abbr zbw "zig build --watch -fincremental --prominent-compile-errors" 86 - abbr zbt "zig build test --summary all" 87 - abbr zbwin "zig build -Dtarget=x86_64-windows" 88 - 89 - # ๎ฏˆ Tmux 90 - abbr tk "tmux kill-session" 91 - abbr tl "tmux list-sessions" 92 - abbr tn "tmux new-session -s" 93 - abbr ta "tmux attach-session" 94 - 95 - end 96 - 97 - function fish_prompt --description "Customize your prompt ๎ช…" 98 - set -l icon "๏ " 99 - set -l working_directory (set_color green) (prompt_pwd) (set_color normal) 100 - 101 - if test -e "build.zig" 102 - set icon (set_color yellow) "๎šฉ " (set_color normal) 103 - else if test -e "deno.json" 104 - set icon (set_color green) "๎Ÿ€ " (set_color normal) 105 - else if test -e "gleam.toml" 106 - set icon (set_color magenta) "๏€… " (set_color normal) 107 - else if test -e "package.json" 108 - set icon (set_color green) "๎ด " (set_color normal) 109 - else if test -e "pyproject.toml" 110 - set icon (set_color yellow) "๎˜† " (set_color normal) 111 - end 112 - 113 - echo -ns $icon $working_directory " ๏„… " 114 - end 115 - 116 - function fish_right_prompt 117 - set -l vcs_color normal 118 - 119 - if command -q jj && test -e ".jj" 120 - set vcs_color blue 121 - set icon (set_color $vcs_color) "๓ฑ—†" (set_color normal) 122 - else if command -q git && test -e ".git" 123 - set vcs_color red 124 - set icon (set_color $vcs_color) "๎™" (set_color normal) 125 - end 126 - 127 - echo -ns $icon (set_color $vcs_color) (fish_git_prompt) (set_color normal) 128 43 end
+52
fish/abbr.fish
··· 1 + abbr fcg $EDITOR $__fish_config_dir/config.fish 2 + abbr tcg $EDITOR $tmux_config_file 3 + 4 + # Default 5 + abbr c clear 6 + abbr fcc fish_clipboard_copy 7 + abbr ll "eza -l --icons=always" 8 + abbr lla "eza -la --icons=always" 9 + abbr ls "eza --icons=always" 10 + abbr man batman 11 + abbr pbat prettybat 12 + abbr v nvim 13 + 14 + # ๎š FZF 15 + abbr fzf "fzf --preview='bat --color=always {}'" 16 + 17 + # ๎™ Git 18 + abbr g git 19 + abbr gc "ghq get" 20 + abbr gg lazygit 21 + abbr gp "git pull" 22 + 23 + # ๎กง Poetry 24 + abbr pea "poetry env activate | source" 25 + abbr ped deactivate 26 + abbr prs "poetry run start" 27 + 28 + # ๏€… Gleam 29 + abbr gn "gleam new" 30 + abbr gr "gleam run" 31 + abbr gt "gleam test" 32 + 33 + abbr gwr 'watchexec --restart --verbose --wrap-process=session --stop-signal SIGTERM \ 34 + --exts gleam --debounce 500ms --watch src/ -- \ 35 + "clear; gleam run"' 36 + 37 + abbr gwt 'watchexec --restart --verbose --wrap-process=session --stop-signal SIGTERM \ 38 + --exts gleam --debounce 500ms --watch test/ -- \ 39 + "clear; gleam test"' 40 + 41 + # ๎šฉ Zig 42 + abbr zb "zig build" 43 + abbr zbr "zig build run" 44 + abbr zbw "zig build --watch -fincremental --prominent-compile-errors" 45 + abbr zbt "zig build test --summary all" 46 + abbr zbwin "zig build -Dtarget=x86_64-windows" 47 + 48 + # ๎ฏˆ Tmux 49 + abbr tk "tmux kill-session" 50 + abbr tl "tmux list-sessions" 51 + abbr tn "tmux new-session -s" 52 + abbr ta "tmux attach-session"
+18
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 -e "build.zig" 6 + set icon (set_color yellow) "๎šฉ " (set_color normal) 7 + else if test -e "deno.json" 8 + set icon (set_color green) "๎Ÿ€ " (set_color normal) 9 + else if test -e "gleam.toml" 10 + set icon (set_color magenta) "๏€… " (set_color normal) 11 + else if test -e "package.json" 12 + set icon (set_color green) "๎ด " (set_color normal) 13 + else if test -e "pyproject.toml" 14 + set icon (set_color yellow) "๎˜† " (set_color normal) 15 + end 16 + 17 + echo -ns $icon $working_directory " ๏„… " 18 + end
+13
fish/functions/fish_right_prompt.fish
··· 1 + function fish_right_prompt 2 + set -l vcs_color normal 3 + 4 + if command -q jj && test -e ".jj" 5 + set vcs_color blue 6 + set icon (set_color $vcs_color) "๓ฑ—†" (set_color normal) 7 + else if command -q git && test -e ".git" 8 + set vcs_color red 9 + set icon (set_color $vcs_color) "๎™" (set_color normal) 10 + end 11 + 12 + echo -ns $icon (set_color $vcs_color) (fish_git_prompt) (set_color normal) 13 + end
+5 -2
fish/functions/sync_backup_dotfiles.fish
··· 7 7 mkdir -p $ghq_dotfiles_root/presenterm && mkdir -p $ghq_dotfiles_root/presenterm/highlighting 8 8 mkdir -p $ghq_dotfiles_root/yazi 9 9 10 + cp -r $__fish_config_dir/config.fish $ghq_dotfiles_root 11 + cp -r $__fish_config_dir/abbr.fish $ghq_dotfiles_root/fish 12 + 10 13 cp -r $jj_config_file $ghq_dotfiles_root/jj 11 14 cp -r $tmux_config_file $ghq_dotfiles_root 12 - 13 - cp -r $__fish_config_dir/config.fish $ghq_dotfiles_root 14 15 cp -r $XDG_CONFIG_HOME/bat $ghq_dotfiles_root 15 16 cp -r $XDG_CONFIG_HOME/lazygit/config.yml $ghq_dotfiles_root/lazygit 16 17 cp -r $XDG_CONFIG_HOME/nvim/lua/ $ghq_dotfiles_root/nvim ··· 23 24 set -l custom_fish_functions \ 24 25 sync_backup_dotfiles.fish \ 25 26 sync_current_dotfiles.fish \ 27 + fish_prompt.fish \ 28 + fish_right_prompt.fish \ 26 29 uu.fish \ 27 30 basic_custom_setup.fish \ 28 31 y.fish
+5 -1
fish/functions/sync_current_dotfiles.fish
··· 7 7 mkdir -p $XDG_CONFIG_HOME/presenterm/highlighting 8 8 mkdir -p $XDG_CONFIG_HOME/yazi 9 9 10 + cp -r $ghq_dotfiles_root/fish/config.fish $__fish_config_dir 11 + cp -r $ghq_dotfiles_root/fish/abbr.fish $__fish_config_dir 12 + 10 13 cp -r $ghq_dotfiles_root/.gitconfig $HOME 11 14 cp -r $ghq_dotfiles_root/bat $XDG_CONFIG_HOME/ 12 - cp -r $ghq_dotfiles_root/fish/config.fish $__fish_config_dir 13 15 cp -r $ghq_dotfiles_root/lazygit/config.yml $XDG_CONFIG_HOME/lazygit 14 16 cp -r $ghq_dotfiles_root/nvim/lua $XDG_CONFIG_HOME/nvim 15 17 cp -r $ghq_dotfiles_root/nvim/snippets $XDG_CONFIG_HOME/nvim ··· 22 24 set -l custom_fish_functions \ 23 25 sync_backup_dotfiles.fish \ 24 26 sync_current_dotfiles.fish \ 27 + fish_prompt.fish \ 28 + fish_right_prompt.fish \ 25 29 uu.fish \ 26 30 basic_custom_setup.fish \ 27 31 y.fish