Using stow-rename, unhide all the files :3
This commit is contained in:
parent
0e6a97b8f3
commit
b99c2956eb
3 changed files with 1 additions and 0 deletions
config/git
15
config/git/config
Normal file
15
config/git/config
Normal file
|
@ -0,0 +1,15 @@
|
|||
[include]
|
||||
path = config.local
|
||||
|
||||
[alias]
|
||||
co = checkout
|
||||
d = diff
|
||||
l = log --graph --oneline --decorate --all
|
||||
st = status --short
|
||||
shove = "!f() { git push ${1:-origin} :; }; f"
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[url "git@github.com:"]
|
||||
pushInsteadOf = https://github.com/
|
11
config/git/hooks/post-commit
Executable file
11
config/git/hooks/post-commit
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
chmod a-x $0
|
||||
|
||||
msg="$(git log -n 1 --pretty=format:'%s%n%n%b')"
|
||||
guilt="$(git guilt HEAD~1 HEAD)"
|
||||
what="$(curl http://whatthecommit.com/index.txt)"
|
||||
|
||||
git commit --no-verify --amend -m $msg$'\n\n'$guilt$'\n\n'$what
|
||||
|
||||
chmod a+x $0
|
Loading…
Add table
Add a link
Reference in a new issue