dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

.gitconfig (1773B)


      1[user]
      2	name = Dash Eclipse
      3	email = dashezup@disroot.org
      4	# gpg --list-secret-keys --keyid-format=long
      5	signingkey = 82C68EF1A42202D8
      6[commit]
      7	gpgsign = true
      8[diff]
      9	tool = vimdiff
     10[http]
     11	proxy = socks5h://127.0.0.1:1080
     12[https]
     13	proxy = socks5h://127.0.0.1:1080
     14[init]
     15	defaultBranch = main
     16[pager]
     17	log = less -S
     18[gpg]
     19	program = gpg2
     20[pretty]
     21	# PRETTY FORMATS COLORS: https://stackoverflow.com/a/15458378/15763223
     22	xoneline = format:%C(yellow)%h%C(reset) %C(auto)%<(70,trunc)%s %C(white dim)%as%C(reset) %C(green dim)(%cr)%C(reset) %C(reset)%C(blue bold)%<(7)%aN%C(reset)%C(auto)%d
     23	xfull = format:%m %C(yellow)%H%C(reset)%C(auto)%d%n%m %C(blue bold)%aN%C(reset) %C(ul)<%ae>%C(reset)%n%m %C(cyan)%ai%C(reset) %C(magenta)(%cr)%C(reset)%n%n%C(auto)%w(0,4,4)%B
     24[alias]
     25	# git log --name-status
     26	s = status -s
     27	wip = "!git add --all; git commit -a -m \"wip: update\""
     28	wtc = "!git add --all; git commit -a -m \"[WTC] $(curl -s whatthecommit.com/index.txt)\""
     29	cloc = !cloc -vcs git
     30	stats = !git diff --stat \"$(git hash-object -t tree /dev/null)\"
     31	changelog = !git --no-pager log --oneline --pretty=\"%cs %s\" -n5
     32	contrib = shortlog -sne
     33	tree = !git ls-files $1 | tree --fromfile
     34	find = !git ls-tree --full-tree -r --name-only HEAD | sk --layout=reverse-list --preview-window=up --height=15
     35	# Compact and Full Logs
     36	lc = log --graph --pretty=xoneline
     37	lf = log --graph --stat --pretty=xfull
     38	# git arc [tar|tgz|tar.gz|zip]
     39	# git archive --list
     40	# zcat repo_2022-03-22_feat-initial-commit.tar.gz | git get-tar-commit-id
     41	arc = "!f() { test -z \"$1\" && return 1; FMT=\"$1\"; RN=\"$(basename $(git rev-parse --show-toplevel))\"; EN=\"$(git log -1 --oneline --pretty=%as_%f)\"; git archive --format=\"$FMT\" -o \"${RN}_${EN}.${FMT}\" --prefix=\"${RN}/\" HEAD; }; f"