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

Configure Feed

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

move fish functions

Kacaii 1a35ad7a 8f69d888

+225
+52
.config/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"
+30
.config/fish/config.fish
··· 1 + if status is-interactive 2 + source $__fish_config_dir/abbr.fish 3 + source $__fish_config_dir/ensure_path.fish 4 + 5 + set -g fish_greeting "" 6 + set fish_color_valid_path 7 + 8 + set -gx EDITOR nvim 9 + set -gx XDG_CONFIG_HOME $HOME/.config 10 + set -gx TERM xterm-256color 11 + 12 + set -g ghq_dotfiles_root $(ghq root)/github.com/Kacaii/dotfiles 13 + set -g tmux_config_file $HOME/.tmux.conf 14 + set -g jj_config_file (jj config path --user) 15 + 16 + # ๎™ Git Prompt Customization 17 + set -g __fish_git_prompt_showdirtystate true 18 + set -g __fish_git_prompt_char_dirtystate "*" 19 + 20 + set -gx FZF_DEFAULT_OPTS "\ 21 + --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ 22 + --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ 23 + --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 \ 24 + --color=selected-bg:#45475a \ 25 + --multi" 26 + 27 + fzf --fish | source 28 + zoxide init fish | source 29 + 30 + end
+13
.config/fish/ensure_path.fish
··· 1 + set -l ensure_fish_add_path \ 2 + $HOME/.bun/bin \ 3 + $HOME/.cargo/bin \ 4 + $HOME/.local/bin \ 5 + $HOME/custom_scripts \ 6 + $HOME/go/bin \ 7 + /home/linuxbrew/.linuxbrew/bin \ 8 + /home/linuxbrew/.linuxbrew/sbin \ 9 + /snap/bin 10 + 11 + for required_path in $ensure_fish_add_path 12 + fish_add_path $required_path 13 + end
+6
.config/fish/fish_plugins
··· 1 + jorgebucaran/fisher 2 + jethrokuan/z 3 + decors/fish-ghq 4 + catppuccin/fish 5 + decors/fish-colored-man 6 + patrickf1/fzf.fish
+93
.config/fish/functions/basic_custom_setup.fish
··· 1 + # ๏‘„ Git ๎™ https://git-scm.com/downloads/linux 2 + # ๏‘„ Homebrew ๎Ÿฝ $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 3 + # ๏‘„ Fish Shell ๎น $ brew install fish 4 + # ๏‘„ GHQ $ brew install ghq 5 + function basic_custom_setup 6 + # Homebrew Software -------------------------------------------------------- 7 + set ensure_installed_homebrew \ 8 + ast-grep \ 9 + bat \ 10 + difftastic \ 11 + direnv \ 12 + docker \ 13 + eza \ 14 + fd \ 15 + fish \ 16 + fish-lsp \ 17 + fzf \ 18 + gcc \ 19 + gh \ 20 + ghq \ 21 + gleam \ 22 + go \ 23 + httpie \ 24 + jj \ 25 + just \ 26 + lazydocker \ 27 + lazygit \ 28 + lua \ 29 + luarocks \ 30 + make \ 31 + node \ 32 + nvim \ 33 + pipx \ 34 + presenterm \ 35 + prettybat \ 36 + rg \ 37 + sqlfluff \ 38 + sqlite3 \ 39 + tmux \ 40 + trash-cli \ 41 + tree \ 42 + tree-sitter \ 43 + tree-sitter-cli \ 44 + watchexec \ 45 + yazi \ 46 + zig \ 47 + zoxide 48 + 49 + # Install missing homebrew formulaes 50 + for formulae in $ensure_installed_homebrew 51 + if not type -q $formulae 52 + brew install -q $formulae 53 + end 54 + end 55 + 56 + # Verify bat-extras installation ------------------------------------------- 57 + set bat_extras_list \ 58 + batdiff \ 59 + batgrep \ 60 + batman \ 61 + batpipe \ 62 + batwatch 63 + 64 + # Install missing bat-extras formulaes 65 + for bat_extra in $bat_extras_list 66 + if not type -q $bat_extra 67 + brew install -q bat-extras 68 + end 69 + end 70 + 71 + # Verify fisher installation ----------------------------------------------- 72 + if not type -q fisher 73 + curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher 74 + end 75 + 76 + # Fisher Plugins 77 + set -l ensure_installed_fisher \ 78 + jorgebucaran/fisher \ 79 + jethrokuan/z \ 80 + decors/fish-ghq \ 81 + catppuccin/fish \ 82 + decors/fish-colored-man \ 83 + patrickf1/fzf.fish \ 84 + jorgebucaran/autopair.fish 85 + 86 + # Install missing fisher plugins 87 + for fisher_plugin in $ensure_installed_fisher 88 + if not contains $fisher_plugin (cat $__fish_config_dir/fish_plugins) 89 + fisher install $fisher_plugin 90 + end 91 + end 92 + 93 + end
+18
.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 -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
.config/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