commit 553da0e05b0085a7e335728d70bd1db7edfc2d6c Author: Erystasius Date: Sun Mar 22 09:19:03 2026 +0800 init diff --git a/private_dot_config/git/executable_config b/private_dot_config/git/executable_config new file mode 100644 index 0000000..2fc5e26 --- /dev/null +++ b/private_dot_config/git/executable_config @@ -0,0 +1,46 @@ +[user] + email = Felix.E.Huang@gmail.com + name = Erystasius + +[core] + autocrlf = input + +[push] + autoSetupRemote = true + +[difftool "sourcetree"] + cmd = "'' " + +[mergetool "sourcetree"] + cmd = "'' " + trustExitCode = true + +[alias] + # Shorten basic commands + br = branch + ci = commit + st = status + rb = rebase + rl = reflog + cf = config + rs = restore + co = checkout + sm = submodule + cp = cherry-pick + # Push + pub = push --set-upstream origin HEAD # Publish curent branch + force-push = push --force + # Pull + force-pull = !git fetch && git reset --hard "@{u}" + # Restore commands + rss = restore --staged + rssa = restore --staged :/ + throw = !git reset --hard HEAD && git clean -df + # Auto commit commands + ac = ! git add --all && git ci -m 'No-message commit [Generated by ac command]' + cp = ! git ci -m 'No-message commit [Generated by ac command]' && git push + acp = ! git ac && git push + # Alias + alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / + # Log + lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit diff --git a/private_dot_config/private_fish/completions/.keep b/private_dot_config/private_fish/completions/.keep new file mode 100644 index 0000000..e69de29 diff --git a/private_dot_config/private_fish/conf.d/fish_frozen_key_bindings.fish b/private_dot_config/private_fish/conf.d/fish_frozen_key_bindings.fish new file mode 100644 index 0000000..495aee9 --- /dev/null +++ b/private_dot_config/private_fish/conf.d/fish_frozen_key_bindings.fish @@ -0,0 +1,14 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# the 'fish_key_bindings' variable from its old default scope (universal) +# to its new default scope (global). We recommend you delete this file +# and configure key bindings in ~/.config/fish/config.fish if needed. + +# set --global fish_key_bindings fish_default_key_bindings + +# Prior to version 4.3, fish shipped an event handler that runs +# `set --universal fish_key_bindings fish_default_key_bindings` +# whenever the fish_key_bindings variable is erased. +# This means that as long as any fish < 4.3 is still running on this system, +# we cannot complete the migration. +# As a workaround, erase the universal variable at every shell startup. +set --erase --universal fish_key_bindings diff --git a/private_dot_config/private_fish/conf.d/fish_frozen_theme.fish b/private_dot_config/private_fish/conf.d/fish_frozen_theme.fish new file mode 100644 index 0000000..5c7cef9 --- /dev/null +++ b/private_dot_config/private_fish/conf.d/fish_frozen_theme.fish @@ -0,0 +1,37 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# theme variables from universal to global scope. +# Don't edit this file, as it will be written by the web-config tool (`fish_config`). +# To customize your theme, delete this file and see +# help interactive#syntax-highlighting +# or +# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING +# for appropriate commands to add to ~/.config/fish/config.fish instead. +# See also the release notes for fish 4.3.0 (run `help relnotes`). + +set --global fish_color_autosuggestion brblack +set --global fish_color_cancel -r +set --global fish_color_command normal +set --global fish_color_comment red +set --global fish_color_cwd green +set --global fish_color_cwd_root red +set --global fish_color_end green +set --global fish_color_error brred +set --global fish_color_escape brcyan +set --global fish_color_history_current --bold +set --global fish_color_host normal +set --global fish_color_host_remote yellow +set --global fish_color_normal normal +set --global fish_color_operator brcyan +set --global fish_color_param cyan +set --global fish_color_quote yellow +set --global fish_color_redirection cyan --bold +set --global fish_color_search_match white --background=brblack +set --global fish_color_selection white --bold --background=brblack +set --global fish_color_status red +set --global fish_color_user brgreen +set --global fish_color_valid_path --underline +set --global fish_pager_color_completion normal +set --global fish_pager_color_description yellow -i +set --global fish_pager_color_prefix normal --bold --underline +set --global fish_pager_color_progress brwhite --background=cyan +set --global fish_pager_color_selected_background -r diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish new file mode 100644 index 0000000..115c8ab --- /dev/null +++ b/private_dot_config/private_fish/config.fish @@ -0,0 +1,19 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end + +# Aliases +alias ls=exa +alias cat=bat +alias cap='cat -p' +alias find=fd +alias grep=rg +alias top=btop +alias help=tldr +abbr cz chezmoi + +thefuck --alias | source + +zoxide init fish | source + +fastfetch diff --git a/private_dot_config/private_fish/fish_variables b/private_dot_config/private_fish/fish_variables new file mode 100644 index 0000000..ad10b9b --- /dev/null +++ b/private_dot_config/private_fish/fish_variables @@ -0,0 +1,3 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:4300 diff --git a/private_dot_config/private_fish/functions/.keep b/private_dot_config/private_fish/functions/.keep new file mode 100644 index 0000000..e69de29