-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
44 lines (36 loc) · 5.71 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[core]
pager = delta
excludesfile = ~/.config/.gitignore_global
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = false
side-by-side = true
[diff]
colorMoved = default
[merge]
conflictstyle = diff3
keepBackup = false
tool = diffconflicts
[mergetool "diffconflicts"]
cmd = vim -c DiffConflicts \"$MERGED\" \"$BASE\" \"$LOCAL\" \"$REMOTE\"
trustExitCode = true
[user]
name = xusd320
email = [email protected]
[oh-my-zsh]
git-commit-alias = 1514145a09140425b914e9cd98fc1d638a8c4003
[alias]
build = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"build${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
chore = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"chore${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
ci = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"ci${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
docs = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"docs${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
feat = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"feat${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
fix = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"fix${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
perf = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"perf${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
refactor = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"refactor${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
rev = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"revert${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
style = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"style${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
test = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"test${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"
wip = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"wip${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a"