2018-06-05 07:39:14 +02:00
|
|
|
# systemsettings
|
2013-08-29 11:08:56 +02:00
|
|
|
|
2018-05-29 14:25:46 +02:00
|
|
|
These are my config files, feel free to use them as an inspiration. If you have any questions, please file an issue.
|
2018-06-05 07:39:14 +02:00
|
|
|
|
|
|
|
## Bootstrapping
|
2018-07-13 10:16:02 +02:00
|
|
|
|
2018-06-05 07:39:14 +02:00
|
|
|
```bash
|
|
|
|
#! /bin/sh
|
|
|
|
TMPDIR=$(mktemp -u -p "$HOME" -d dotfiles.XXXXX)
|
2018-07-13 10:16:02 +02:00
|
|
|
git clone --separate-git-dir="$HOME/.cfg" https://github.com/schtobia/dotfiles.git "$TMPDIR"
|
2018-06-05 07:39:14 +02:00
|
|
|
[ -r "$TMPDIR/.gitmodules" ] && cp -vi "$TMPDIR/.gitmodules" "$HOME"
|
|
|
|
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" config status.showUntrackedFiles no
|
|
|
|
rm -r $TMPDIR
|
|
|
|
```
|
2018-07-13 10:16:02 +02:00
|
|
|
|
2018-06-05 07:39:14 +02:00
|
|
|
## Alias
|
|
|
|
|
|
|
|
alias config='git --git-dir="$HOME/.cfg/" --work-tree="$HOME"'
|
2018-10-16 09:33:11 +02:00
|
|
|
|
|
|
|
## References
|
|
|
|
|
|
|
|
This is partly based on the [solution presented on HN](https://news.ycombinator.com/item?id=11071754).
|