dotfiles

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

config (4000B)


      1[include]
      2	path = user.ini
      3[init]
      4	defaultBranch = main
      5[diff]
      6	tool = vimdiff
      7[pager]
      8	log = less -cS
      9	show = less -cS
     10	diff = less -cS
     11	shortlog = less -cS
     12	grep = less -cS
     13	branch = less -cS
     14[pretty]
     15	# PRETTY FORMATS COLORS: https://stackoverflow.com/a/15458378/15763223
     16	# 50/72 Rule
     17	xoneline = format:%C(yellow)%h%C(reset) %C(auto)%<(50,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
     18	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
     19	# git log --pretty=full --stat -p
     20	xpfull = format:%m %C(black 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
     21	# git shortlog -ne --format=shortlog
     22	shortlog = tformat:* [%h] %<(50,trunc)%s %as (%cr)
     23	changelog = tformat:%m %C(green)%cs%C(reset) %s
     24[format]
     25	pretty = xfull
     26[alias]
     27	# Init
     28	template = "!f() { git init --template=\"$1/.git\" && git stash && git commit --amend --no-edit --date=now; }; f"
     29	# Diff
     30	d = diff
     31	ds = diff --stat
     32	dc = diff --cached
     33	# Commit
     34	gpgoff = config commit.gpgsign false
     35	ca = commit -a -v
     36	cam = commit -a -m
     37	amend = commit -v --amend
     38	wip = "!git add --all; git commit -v -a -m '[WIP]' -e"
     39	wtc = "!git add --all; git commit -a -m \"[WTC] $(curl -s whatthecommit.com/index.txt)\""
     40	# Conventional Commits
     41	empty = commit -v -m 'chore: initial empty commit' --allow-empty -e
     42	feat = commit -v -m 'feat: ' -e
     43	fix = commit -v -m 'fix: ' -e
     44	docs = commit -v -m 'docs: ' -e
     45	chore = commit -v -m 'chore: ' -e
     46	refactor = commit -v -m 'refactor: ' -e
     47	style = commit -v -m 'style: ' -e
     48	test = commit -v -m 'test: ' -e
     49	# Status and Statistics
     50	s = status -s
     51	cloc = !cloc -vcs git
     52	stats = !git diff --stat \"$(git hash-object -t tree /dev/null)\"
     53	# git changelog -n-1
     54	changelog = !git --no-pager log --oneline --pretty=changelog
     55	changelog-md = "!git log --oneline --pretty=changelog | sed 's/^>/-/; 1i # Changelog\\n' | tee CHANGELOG.md && git add CHANGELOG.md"
     56	contrib = shortlog -sne
     57	tree = "!f() { git ls-files $@ | tree --fromfile; }; f"
     58	find = !git ls-tree --full-tree -r --name-only HEAD | sk --multi --layout=reverse --prompt='git find '
     59	# Compact and Full Logs
     60	lc = log --graph --pretty=xoneline
     61	lf = log --graph --stat --pretty=xfull
     62	# Misc
     63	# git arc [tar|tgz|tar.gz|zip]
     64	# git archive --list
     65	# zcat repo_2022-03-22_feat-initial-commit.tar.gz | git get-tar-commit-id
     66	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"
     67	alias = "!git config -l | grep alias | cut -c 7- | column -s'=' -t -l2 | GREP_COLORS='ms=1;32' egrep --color 'f\\(\\)|$'"
     68	fz = !ALIAS=$(echo 'fzlog fzcheckout find' | tr ' ' '\n' | fzf --layout=reverse --inline-info --prompt='git ') && git $ALIAS
     69	fzlog = !git log --oneline --pretty=xoneline --color=always | fzf --no-sort --ansi --multi --inline-info --reverse --prompt='git log ' --preview='git show {+1} --stat -p --color=always' --bind='enter:execute:git show --stat -p {+1} --color=always' --bind='F2:toggle-preview' --preview-window=right,border-left
     70	fzcheckout = "!TARGET=$({ git branch --all --color -vv | sed 's/^/branch,/'; git tag | sed 's/^/tag,  /'; } | column -s, -t -l2 | fzf --ansi --no-sort --layout=reverse --info=inline --prompt='git checkout ' | awk '{print $2}') && test ! -z \"$TARGET\" && echo \"> git checkout $TARGET\" && git checkout \"$TARGET\""
     71	fzpath = !git ls-files . | fzf --no-sort --ansi --multi --info=inline --layout=reverse --prompt='git log -- ' --preview='git log --color=always --pretty=xoneline -- {}' --bind='enter:execute:git log --color=always --pretty=xpfull --stat -p -- {}' --bind='F2:toggle-preview' --preview-window=right,border-left