-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
18 lines (18 loc) · 1.43 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[user]
name = Adam Walsh
email = [email protected]
[core]
editor = /usr/bin/vim
[credential]
helper = osxkeychain
[push]
default = matching
[alias]
chore = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"chore: \" -e; else git commit -m \"chore: $1\"; fi }; f"
docs = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"docs: \" -e; else git commit -m \"docs: $1\"; fi }; f"
feat = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"feat: \" -e; else git commit -m \"feat: $1\"; fi }; f"
fix = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"fix: \" -e; else git commit -m \"fix: $1\"; fi }; f"
localize = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"localize: \" -e; else git commit -m \"localize: $1\"; fi }; f"
refactor = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"refactor: \" -e; else git commit -m \"refactor: $1\"; fi }; f"
style = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"style: \" -e; else git commit -m \"style: $1\"; fi }; f"
test = "!f() { [[ -z \"$GIT_PREFIX\" ]] || cd \"$GIT_PREFIX\" && if [[ -z $1 ]]; then git commit -m \"test: \" -e; else git commit -m \"test: $1\"; fi }; f"