git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: d3835170c70455bfdc610aa99e6e2ef9b7e54ced (plain)
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
# CONTENT

Yet another (!) approach at building up a centralized configuration.

Parts are old, parts are not done yet, we're getting there.

# Information for cloning

## only clone git-prompt.sh

Define your git hooksPath. If `git config --global core.hooksPath` delivers no result, choose a directory
where to place your hooks. I am going with `git config --global core.hooksPath '~/git-hooks'` (the quotation
marks are essential here, otherwise `~` would be converted to a static home directory name).

Inside that folder, place a file with following content:

```
#!/usr/bin/env sh

if git remote get-url origin --no-all | grep -P 'lirion.*dotfiles(.git)?$' > /dev/null; then
	install -dvm .git/modules
	install -dvm .git/modules/git-prompt
	install -dvm .git/modules/git-prompt/info
	cat > .git/modules/git-prompt/info/sparse-checkout <