๐Ÿ”’ Backup for my config files
dotfiles

only source some files if interactive

kacaii.dev d667ca15 8187a614

verified
+68 -62
+3 -3
.config/fish/config.fish
··· 8 8 set -gx EDITOR nvim 9 9 set -gx XDG_CONFIG_HOME $HOME/.config 10 10 11 - source "$XDG_CONFIG_HOME/fish/modules/path.fish" 12 - source "$XDG_CONFIG_HOME/fish/modules/abbr.fish" 13 - source "$XDG_CONFIG_HOME/fish/modules/integrations.fish" 11 + source "$__fish_config_dir/modules/path.fish" 12 + source "$__fish_config_dir/modules/abbr.fish" 13 + source "$__fish_config_dir/modules/integrations.fish" 14 14 15 15 end
+48 -44
.config/fish/modules/abbr.fish
··· 1 - # Config files 2 - abbr fcg $EDITOR $__fish_config_dir/config.fish 3 - abbr jcg $EDITOR $XDG_CONFIG_HOME/jj/config.toml 4 - abbr gcg $EDITOR $XDG_CONFIG_HOME/ghostty/config 1 + if status is-interactive 2 + # 3 + # Config files 4 + abbr fcg $EDITOR $__fish_config_dir/config.fish 5 + abbr jcg $EDITOR $XDG_CONFIG_HOME/jj/config.toml 6 + abbr gcg $EDITOR $XDG_CONFIG_HOME/ghostty/config 5 7 6 - # Reload shell 7 - abbr s "source $__fish_config_dir/config.fish" 8 + # Reload shell 9 + abbr s "source $__fish_config_dir/config.fish" 8 10 9 - # Default 10 - abbr c clear 11 - abbr fcc fish_clipboard_copy 12 - abbr ff fastfetch 13 - abbr freeze "freeze --config user" 14 - abbr v nvim 11 + # Default 12 + abbr c clear 13 + abbr fcc fish_clipboard_copy 14 + abbr ff fastfetch 15 + abbr freeze "freeze --config user" 16 + abbr v nvim 15 17 16 - abbr man batman 17 - abbr rg batgrep 18 - abbr bat prettybat 18 + abbr man batman 19 + abbr rg batgrep 20 + abbr bat prettybat 19 21 20 - abbr ls "eza --icons always" 21 - abbr ll "eza -la --icons always" 22 - abbr tree "eza --tree" 22 + abbr ls "eza --icons always" 23 + abbr ll "eza -la --icons always" 24 + abbr tree "eza --tree" 23 25 24 - # ๓ฑ—† JJ 25 - abbr jjc "jj commit -m" 26 - abbr jjd "jj describe -m" 27 - abbr jjn "jj new -m" 26 + # ๓ฑ—† JJ 27 + abbr jjc "jj commit -m" 28 + abbr jjd "jj describe -m" 29 + abbr jjn "jj new -m" 28 30 29 - # ๎กง Poetry 30 - abbr pea "poetry env activate | source" 31 - abbr ped deactivate 32 - abbr prs "poetry run start" 31 + # ๎กง Poetry 32 + abbr pea "poetry env activate | source" 33 + abbr ped deactivate 34 + abbr prs "poetry run start" 33 35 34 - # ๏€… Gleam 35 - abbr gn "gleam new" 36 - abbr gr "gleam run" 37 - abbr gt "gleam test" 36 + # ๏€… Gleam 37 + abbr gn "gleam new" 38 + abbr gr "gleam run" 39 + abbr gt "gleam test" 38 40 39 - abbr gwr '\ 40 - watchexec --restart --verbose --wrap-process=session \ 41 - --stop-signal SIGTERM --exts gleam --debounce 500ms \ 42 - --watch src/ -- "clear; gleam run"' 41 + abbr gwr '\ 42 + watchexec --restart --verbose --wrap-process=session \ 43 + --stop-signal SIGTERM --exts gleam --debounce 500ms \ 44 + --watch src/ -- "clear; gleam run"' 43 45 44 - abbr gwt '\ 45 - watchexec --restart --verbose --wrap-process=session \ 46 - --stop-signal SIGTERM --exts gleam --debounce 500ms \ 47 - --watch test/ -- "clear; gleam test"' 46 + abbr gwt '\ 47 + watchexec --restart --verbose --wrap-process=session \ 48 + --stop-signal SIGTERM --exts gleam --debounce 500ms \ 49 + --watch test/ -- "clear; gleam test"' 50 + 51 + # ๎šฉ Zig 52 + abbr zb "zig build" 53 + abbr zbr "zig build run" 54 + abbr zbw "zig build --watch -fincremental --prominent-compile-errors" 55 + abbr zbt "zig build test --summary all" 56 + abbr zbwin "zig build -Dtarget=x86_64-windows" 48 57 49 - # ๎šฉ Zig 50 - abbr zb "zig build" 51 - abbr zbr "zig build run" 52 - abbr zbw "zig build --watch -fincremental --prominent-compile-errors" 53 - abbr zbt "zig build test --summary all" 54 - abbr zbwin "zig build -Dtarget=x86_64-windows" 58 + end
+17 -15
.config/fish/modules/integrations.fish
··· 1 - command -q direnv; and direnv hook fish | source 2 - command -q jj; and set -g jj_config_file ( jj config path --user ) 3 - command -q keychain; and eval "$(keychain --quiet --eval github tangled)" 4 - command -q zoxide; and zoxide init fish | source 5 - command -q starship; and starship init fish | source 6 - command -q batpipe; and eval (batpipe) 7 - command -q batman; and batman --export-env | source 8 - command -q rumdl; and rumdl completions | source 9 - command -q fzf; and fzf --fish | source; and set -gx FZF_DEFAULT_OPTS "\ 10 - --color=bg+:#313244,spinner:#F5E0DC,hl:#F38BA8 \ 11 - --color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \ 12 - --color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \ 13 - --color=selected-bg:#45475A \ 14 - --color=border:#6C7086,label:#CDD6F4 \ 15 - --preview='bat --color=always {}'" 1 + if status is-interactive 2 + 3 + command -q direnv; and direnv hook fish | source 4 + command -q jj; and set -g jj_config_file ( jj config path --user ) 5 + command -q keychain; and eval "$(keychain --quiet --eval github tangled)" 6 + command -q zoxide; and zoxide init fish | source 7 + command -q starship; and starship init fish | source 8 + command -q batman; and batman --export-env | source 9 + command -q fzf; and fzf --fish | source; and set -gx FZF_DEFAULT_OPTS "\ 10 + --color=bg+:#313244,spinner:#F5E0DC,hl:#F38BA8 \ 11 + --color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \ 12 + --color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \ 13 + --color=selected-bg:#45475A \ 14 + --color=border:#6C7086,label:#CDD6F4 \ 15 + --preview='bat --color=always {}'" 16 + 17 + end