This replaces HOME with the current home directory. This was necessary as git
needs an absolute path for excludesfile.
gitconfig.m4 is automatically created when calling `make setup`.
--- /dev/null
+# Ignore generated files.
+gitconfig
# Generate necessary files and create symbolic links in ~/.
+M4=../m4.sh
LINK=../link.sh
.PHONY: setup
setup:
+ # Generate gitconfig.
+ $(M4) gitconfig -DHOME=$(HOME)
# Link setup.
$(LINK) gitconfig ~/.gitconfig
$(LINK) gitignore ~/.gitignore
diff = auto
[core]
- excludesfile = /Users/simonruderich/.gitignore
+ excludesfile = HOME/.gitignore
[alias]
ci = commit -v