diff options
author | Tyler E. Cone <tyler.cone91@gmail.com> | 2025-07-27 03:35:30 +0000 |
---|---|---|
committer | Tyler E. Cone <tyler.cone91@gmail.com> | 2025-07-27 03:35:30 +0000 |
commit | c1e21843a067e084e256aef1790461f93337f86d (patch) | |
tree | 0469d6438607746fdc1d96b7bc90fae9d92f0435 /.gitconfig |
Initial Commit: Tracking global dotenv files for my default arch build.
Includes python virtualenvs, git configs, zsh configs, and thefuck
settings so far.
Diffstat (limited to '.gitconfig')
-rw-r--r-- | .gitconfig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..6426480 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,15 @@ +[oh-my-zsh] + git-commit-alias = 13d4176a686507678ffd1b889838356f95f217e0 +[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" |