use GNU stow for setup

This commit is contained in:
Thomas Ruoff
2018-05-09 00:08:38 +02:00
parent 5d78e5848d
commit f9c702ed55
33 changed files with 24 additions and 149 deletions

40
git/.gitconfig Normal file
View File

@@ -0,0 +1,40 @@
[user]
name = Thomas Ruoff
email = ThomasRuoff@gmail.com
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[core]
editor=vim -f +1 -c start!
autocrlf=input
eol=lf
[alias]
st = status
co = checkout
cm = commit
pr = !git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1 && :
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
llog = log --date=local
changes = diff --name-status -r
diffstat = diff --stat -r
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
fix = "!f() { ${EDITOR} $(git diff --name-only | uniq ); }; f"
last = "!l() { ${EDITOR} $(git diff-tree --no-commit-id --name-only -r HEAD ); }; l"
[merge]
tool = bc3
[mergetool]
cmd = /usr/bin/bcompare $LOCAL $REMOTE $BASE $MERGED
[push]
default = current
[giggle]
main-window-maximized = false
main-window-geometry = 1229x863+2049+127
main-window-view = FileView
file-view-vpane-position = 304
file-view-hpane-position = 363
[gui]
historybrowser = gitk
[rebase]
autosquash = true