-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALLER
executable file
·131 lines (101 loc) · 4.61 KB
/
INSTALLER
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!bash
#
# This file might be sourced during installation with hsadmin
#
[ -e "${HOME}/.config/gitu" ] \
|| ln -fs "$(pwd)/.config-base/gitu" "${HOME}/.config/"
[ -e "${HOME}/.config/pep8" ] \
|| ln -fs "$(pwd)/.config-base/pep8" "${HOME}/.config/"
[ -e "${HOME}/.config/flake8" ] \
|| ln -fs "$(pwd)/.config-base/flake8" "${HOME}/.config/"
[ -e "${HOME}/.pulse/default.pa" ] \
|| (mkdir -p "${HOME}/.pulse" \
&& ln -fs "$(pwd)/.config-base/pulse/default.pa" "${HOME}/.pulse/" )
[ -e "${HOME}/.config/pudb" ] \
|| ln -fs "$(pwd)/.config-base/pudb" "${HOME}/.config/pudb"
gc() {
git config --global "$@" || true
}
gu() {
git config --global --unset "$@" || true
}
case "${USER}" in
t|thomasf|a00001)
gc user.name "Thomas Frössman"
gc user.email "[email protected]"
gc github.user thomasf
;;
esac
# disable advices
gc advice.pushnonfastforward "false"
gc advice.statushints "false"
gc advice.commitbeforemerge "false"
gc advice.resolveconflict "false"
gc advice.implicitidentity "false"
gc advice.detachedhead "false"
# set up aliases
gc alias.b "for-each-ref --sort=committerdate refs/heads/ --format='%(align:18)%(color:green)%(committerdate:relative)%(color:reset)%(end)%(color:cyan)%(align:18)%(authorname)%(end)%(color:reset) %(color:yellow)%(refname:short)%(color:reset) %(color:blue)-%(color:reset) %(contents:subject)'"
gc alias.lg "log --date=relative --ignore-space-change --stat --pretty=format:'%C(yellow)%h%Creset %C(green)%ad%Creset %C(cyan)%ae%Creset %C(blue)%s%Creset'"
gc alias.lgv "log -p --pretty=format:'%C(yellow)%h%Creset %C(cyan)%an <%ae>%Creset %Cgreen%cr%Creset %C(magenta)%s%Creset%C(yellow)%d%Creset'"
gc alias.lgt "log --graph --all --pretty=format:'%C(yellow)%h%Creset %C(cyan)%ae%Creset %Cgreen%cr%Creset %s%C(yellow)%d%Creset' --abbrev-commit"
gc alias.lgs "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
gc alias.staged "diff --cached"
gc alias.showroot "rev-parse --show-toplevel"
gc alias.verref "describe --tag HEAD"
gc alias.ribbon "tag --force _ribbon origin/master"
gc alias.catchup "log --patch --reverse --topo-order _ribbon..origin/master"
gc alias.diffdir "difftool -t kdiff3 --dir-diff"
gc alias.pu "pull"
gc alias.ps "push"
# misc settings
gc color.ui auto
gc hub.autoUpdate "never"
# gc init.templatedir "~/.config-base/git/templates"
# gc diff.tool kdiff3
# gc difftool.prompt false
# gc merge.tool kdiff3
# gc alias.ks "difftool -y -t Kaleidoscope"
# This gives us 'ours', 'base', and 'theirs', instead of just 'ours' and
# 'theirs'. More details:
# http://psung.blogspot.com/2011/02/reducing-merge-headaches-git-meets.html
gc merge.conflictstyle diff3
# Prevents us from having to do merge resolution for things we've already
# resolved before; see http://git-scm.com/blog/2010/03/08/rerere.html
gc rerere.enabled true
# With this, "git pull --rebase" is the default form of pull FOR NEWLY CREATED
# BRANCHES; for branches created before this config option is set, pull.rebase
# true handles that
gc branch.autosetuprebase always
# "git pull --rebase" is now the default for pull no matter what
gc pull.rebase true
# This makes sure that push pushes only the current branch, and pushes it to the
# same branch pull would pull from
gc push.default upstream
# This converts CRLF endings to LF endings on Mac & Lin and also keeps them in
# the repo, but for Windows checkouts it converts LF to CRLF (and back to LF on
# commits)
gc core.autocrlf input
# script_dir="$( cd "$( dirname "$0" )" && pwd )"
# gc alias.meld "!$script_dir/bin/git-meld/git-meld.pl"
gc core.excludesfile ~/.gitignore_global
# Forces the use of SSH instead of HTTPS for any URLs that point to github.
# This means that if a repo uses "https://github/..." for "origin", we will
# automatically use SSH. No more password prompts!
# gc url.ssh://[email protected]/.insteadOf https://github.com/
gu url.ssh://[email protected]/.insteadOf
# gc log.date "relative"
gu log.date
gc format.pretty "format:%C(yellow)%h%Creset %C(green)%ad%Creset %C(cyan)%ae%Creset %s"
gc color.ui "auto"
gc core.editor "ee"
gc mergetool.keepbackup "false"
gc mergetool.keeptemporaries "false"
gc mergetool.prompt "true"
gc diff.renamelimit "50000"
gc diff.algorithm "histogram"
# gc gui.fontdiff "-family \"Anonymous Pro\" -size 11 -weight normal -slant roman -underline 0 -overstrike 0"
# gc gui.fontdiff "-family \"PragmataPro\" -size 11 -weight normal -slant roman -underline 0 -overstrike 0"
# gc gui.fontiu "-family \"PragmataPro\" -size 11 -weight normal -slant roman -underline 0 -overstrike 0"
gc ghq.root "${HOME}/src"
unset -f gc
unset -f gu