init
This commit is contained in:
46
private_dot_config/git/executable_config
Normal file
46
private_dot_config/git/executable_config
Normal file
@@ -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
|
||||
0
private_dot_config/private_fish/completions/.keep
Normal file
0
private_dot_config/private_fish/completions/.keep
Normal file
@@ -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
|
||||
@@ -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
|
||||
19
private_dot_config/private_fish/config.fish
Normal file
19
private_dot_config/private_fish/config.fish
Normal file
@@ -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
|
||||
3
private_dot_config/private_fish/fish_variables
Normal file
3
private_dot_config/private_fish/fish_variables
Normal file
@@ -0,0 +1,3 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:4300
|
||||
0
private_dot_config/private_fish/functions/.keep
Normal file
0
private_dot_config/private_fish/functions/.keep
Normal file
Reference in New Issue
Block a user