blob: 0fe5bcb07bdd1fda0fb6e029ca6abbbdf46fdb04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/usr/bin/env zsh
# Dotfiles config
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config pull.ff only
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config push.default simple
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config protocol.version 2
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config status.showUntrackedFiles no
# Main Git Config
git config --global user.name "Tyler Davis"
git config --global user.email tydavis@gmail.com
git config --global push.default simple
git config --global credential.https://gitlab.nordstrom.com.username cm0l
git config --global credential.https://source.developers.google.com.helper "gcloud.sh"
git config --global url."https://gitlab.nordstrom.com/".insteadOf "git@gitlab.nordstrom.com:"
git config --global fetch.parallel 4
git config --global fetch.writeCommitGraphs true
git config --global protocol.version 2
git config --global http.postBuffer 524288000
git config --global status.submodulesummary 1
git config --global pull.ff only
git config --global init.templateDir "~/.config/git/template/"
git config --global hub.protocol https
if [ "$(command -v delta)" ]; then
git config --global core.pager delta
git config --global interactive.diffFilter "delta --color-only"
git config --global delta.side-by-side true
git config --global delta.line-numbers-left-format ""
git config --global delta.line-numbers-right-format "│ "
git config --global delta.syntax-theme "Nord"
fi
case `uname` in
Darwin)
# commands for OS X go here
git config --global credential.helper osxkeychain
#git config --global core.editor "code --wait"
#git config --global difftool.cmd "code --wait --diff $LOCAL $REMOTE"
git config --global core.editor nvim
git config --global difftool.cmd "nvim -d $LOCAL $REMOTE $MERGED -c 'wincmd w' -c 'wincmd J'"
git config --global core.excludesfile "/Users/tydavis/.gitignore_global"
git config --global http.cookiefile /Users/tydavis/.gitcookies
;;
Linux)
# commands for Linux go here
git config --global credential.helper "store --file=/home/tydavis/.config/gitcreds"
git config --global core.editor nvim
git config --global difftool.cmd "nvim -d $LOCAL $REMOTE $MERGED -c 'wincmd w' -c 'wincmd J'"
git config --global core.excludesfile "/home/tydavis/.gitignore_global"
git config --global http.cookiefile /home/tydavis/.gitcookies
;;
FreeBSD)
# commands for FreeBSD go here
;;
esac
|