Update README.md
This commit is contained in:
parent
4e2e1cb63f
commit
aa85710620
1 changed files with 3 additions and 1 deletions
|
@ -3,14 +3,16 @@
|
||||||
These are my config files, feel free to use them as an inspiration. If you have any questions, please file an issue.
|
These are my config files, feel free to use them as an inspiration. If you have any questions, please file an issue.
|
||||||
|
|
||||||
## Bootstrapping
|
## Bootstrapping
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
TMPDIR=$(mktemp -u -p "$HOME" -d dotfiles.XXXXX)
|
TMPDIR=$(mktemp -u -p "$HOME" -d dotfiles.XXXXX)
|
||||||
git clone --separate-git-dir="$HOME/.cfg" git@github.com:schtobia/dotfiles.git "$TMPDIR"
|
git clone --separate-git-dir="$HOME/.cfg" https://github.com/schtobia/dotfiles.git "$TMPDIR"
|
||||||
[ -r "$TMPDIR/.gitmodules" ] && cp -vi "$TMPDIR/.gitmodules" "$HOME"
|
[ -r "$TMPDIR/.gitmodules" ] && cp -vi "$TMPDIR/.gitmodules" "$HOME"
|
||||||
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" config status.showUntrackedFiles no
|
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" config status.showUntrackedFiles no
|
||||||
rm -r $TMPDIR
|
rm -r $TMPDIR
|
||||||
```
|
```
|
||||||
|
|
||||||
## Alias
|
## Alias
|
||||||
|
|
||||||
alias config='git --git-dir="$HOME/.cfg/" --work-tree="$HOME"'
|
alias config='git --git-dir="$HOME/.cfg/" --work-tree="$HOME"'
|
||||||
|
|
Loading…
Reference in a new issue