Grouping stuff

This commit is contained in:
2017-10-15 20:50:00 +02:00
parent b90cf92fb5
commit 832fa5ee30
30 changed files with 120 additions and 37 deletions

47
network/git/gitconfig Normal file
View File

@@ -0,0 +1,47 @@
[user]
name = Thomas Lovén
email = thomasloven@gmail.com
[credential]
helper = cache
[color]
ui = auto
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = current
[core]
pager = less -F -X
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
wd = diff --word-diff=color
amend = commit --amend
aa = add --all
b = branch
updateall = submodule foreach 'git pull'
l = !prettygit
p = "!echo $PATH"
la = !git l --all
r = !git l -30
ra = !git r --all
[merge]
tool = vimdiff

View File

@@ -0,0 +1,38 @@
*.com
*.class
*.dll
*.exe
*.o
*.so
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.log
*.sql
*.sqlite
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
#Latex files
*.aux
*.bcf
*.blg
*.fdb_latexmk
*.fls
*.out
tags

25
network/git/setup.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
local scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
print_info "Configuring git"
brewget git
if [ ! -f "${HOME}/.gitconfig" ]; then
cat << EOF > ${HOME}/.gitconfig
[include]
path = ${scriptdir}/gitconfig
[core]
excludesfile = ${scriptdir}/gitignore_global
EOF
fi
print_ok "Git configured"
}
main "$@"