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

Configure Feed

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

no need to store tmux in a directory

Kacaii c277f993 e4c23a1c

+140 -13
+128
config.fish
··· 1 + if status is-interactive 2 + 3 + set -g fish_greeting "" 4 + set fish_color_valid_path 5 + 6 + set -gx EDITOR nvim 7 + set -gx XDG_CONFIG_HOME $HOME/.config 8 + set -gx TERM xterm-256color 9 + 10 + set -g ghq_dotfiles_root $(ghq root)/github.com/Kacaii/dotfiles 11 + set -g tmux_config_file $HOME/.tmux.conf 12 + set -g jj_config_file (jj config path --user) 13 + 14 + # ๎™ Git Prompt Customization 15 + set -g __fish_git_prompt_showdirtystate true 16 + set -g __fish_git_prompt_char_dirtystate "*" 17 + 18 + set -gx FZF_DEFAULT_OPTS "\ 19 + --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ 20 + --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ 21 + --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 \ 22 + --color=selected-bg:#45475a \ 23 + --multi" 24 + 25 + fzf --fish | source 26 + zoxide init fish | source 27 + 28 + abbr fcg $EDITOR $__fish_config_dir/config.fish 29 + abbr tcg $EDITOR $tmux_config_file 30 + 31 + set -l ensure_fish_add_path \ 32 + $HOME/.bun/bin \ 33 + $HOME/.cargo/bin \ 34 + $HOME/.local/bin \ 35 + $HOME/custom_scripts \ 36 + $HOME/go/bin \ 37 + /home/linuxbrew/.linuxbrew/bin \ 38 + /home/linuxbrew/.linuxbrew/sbin \ 39 + /snap/bin 40 + 41 + for required_path in $ensure_fish_add_path 42 + fish_add_path $required_path 43 + end 44 + 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 + end
+7 -7
fish/functions/sync_backup_dotfiles.fish
··· 5 5 mkdir -p $ghq_dotfiles_root/lazygit 6 6 mkdir -p $ghq_dotfiles_root/nvim 7 7 mkdir -p $ghq_dotfiles_root/presenterm && mkdir -p $ghq_dotfiles_root/presenterm/highlighting 8 - mkdir -p $ghq_dotfiles_root/tmux 9 8 mkdir -p $ghq_dotfiles_root/yazi 10 9 11 - cp -r $__fish_config_dir/config.fish $ghq_dotfiles_root/fish 12 10 cp -r $jj_config_file $ghq_dotfiles_root/jj 13 - cp -r $tmux_config_file $ghq_dotfiles_root/tmux 14 - cp -r $XDG_CONFIG_HOME/bat/ $ghq_dotfiles_root 11 + cp -r $tmux_config_file $ghq_dotfiles_root 12 + 13 + cp -r $__fish_config_dir/config.fish $ghq_dotfiles_root 14 + cp -r $XDG_CONFIG_HOME/bat $ghq_dotfiles_root 15 15 cp -r $XDG_CONFIG_HOME/lazygit/config.yml $ghq_dotfiles_root/lazygit 16 16 cp -r $XDG_CONFIG_HOME/nvim/lua/ $ghq_dotfiles_root/nvim 17 17 cp -r $XDG_CONFIG_HOME/nvim/snippets/ $ghq_dotfiles_root/nvim 18 - cp -r $XDG_CONFIG_HOME/presenterm/config.yaml $ghq_dotfiles_root/presenterm/config.yaml 19 - cp -r $XDG_CONFIG_HOME/presenterm/themes/highlighting/catppuccin-mocha.tmTheme $ghq_dotfiles_root/presenterm/highlighting/catppuccin-mocha.tmTheme 18 + cp -r $XDG_CONFIG_HOME/presenterm/config.yaml $ghq_dotfiles_root/presenterm 19 + cp -r $XDG_CONFIG_HOME/presenterm/themes/highlighting/catppuccin-mocha.tmTheme $ghq_dotfiles_root/presenterm/highlighting 20 20 cp -r $XDG_CONFIG_HOME/yazi/theme.toml $ghq_dotfiles_root/yazi 21 21 cp -r $HOME/.gitconfig $ghq_dotfiles_root 22 22 ··· 28 28 y.fish 29 29 30 30 for fn in $custom_fish_functions 31 - cp -r $__fish_config_dir/functions/$fn $ghq_dotfiles_root/fish/functions 31 + cp -r "$__fish_config_dir/functions/$fn" "$ghq_dotfiles_root/fish/functions" 32 32 end 33 33 34 34 end
+5 -6
fish/functions/sync_current_dotfiles.fish
··· 5 5 mkdir -p $XDG_CONFIG_HOME/lazygit 6 6 mkdir -p $XDG_CONFIG_HOME/nvim 7 7 mkdir -p $XDG_CONFIG_HOME/presenterm/highlighting 8 - mkdir -p $XDG_CONFIG_HOME/tmux 9 8 mkdir -p $XDG_CONFIG_HOME/yazi 10 9 11 10 cp -r $ghq_dotfiles_root/.gitconfig $HOME 12 - cp -r $ghq_dotfiles_root/bat/ $XDG_CONFIG_HOME/ 11 + cp -r $ghq_dotfiles_root/bat $XDG_CONFIG_HOME/ 13 12 cp -r $ghq_dotfiles_root/fish/config.fish $__fish_config_dir 14 13 cp -r $ghq_dotfiles_root/lazygit/config.yml $XDG_CONFIG_HOME/lazygit 15 - cp -r $ghq_dotfiles_root/nvim/lua/ $XDG_CONFIG_HOME/nvim 16 - cp -r $ghq_dotfiles_root/nvim/snippets/ $XDG_CONFIG_HOME/nvim 17 - cp -r $ghq_dotfiles_root/presenterm/config.yaml $XDG_CONFIG_HOME/presenterm/config.yaml 18 - cp -r $ghq_dotfiles_root/presenterm/highlighting/catppuccin-mocha.tmTheme $XDG_CONFIG_HOME/presenterm/themes/highlighting/catppuccin-mocha.tmTheme 14 + cp -r $ghq_dotfiles_root/nvim/lua $XDG_CONFIG_HOME/nvim 15 + cp -r $ghq_dotfiles_root/nvim/snippets $XDG_CONFIG_HOME/nvim 16 + cp -r $ghq_dotfiles_root/presenterm/config.yaml $XDG_CONFIG_HOME/presenterm 17 + cp -r $ghq_dotfiles_root/presenterm/highlighting/catppuccin-mocha.tmTheme $XDG_CONFIG_HOME/presenterm/themes/highlighting 19 18 cp -r $ghq_dotfiles_root/tmux/.tmux.conf $HOME 20 19 cp -r $ghq_dotfiles_root/yazi/theme.toml $XDG_CONFIG_HOME/yazi 21 20 cp -r $ghq_dotfiles_root/jj/config.toml $jj_config_file
tmux/.gitkeep

This is a binary file and will not be displayed.

tmux/.tmux.conf .tmux.conf