Skip to content

Commit

Permalink
README: Recommend sourcing the bootstrapper
Browse files Browse the repository at this point in the history
Thanks to @svnpenn and @nvartolomei in a77f487#commitcomment-2100022, and thanks to @janmoesen for the BASH_SOURCE pointer.
  • Loading branch information
mathiasbynens committed Nov 6, 2012
1 parent d4c2cc6 commit 473766d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -7,19 +7,19 @@
You can clone the repository wherever you want. (I like to keep it in `~/Projects/dotfiles`, with `~/dotfiles` as a symlink.) The bootstrapper script will pull in the latest version and copy the files to your home folder.

```bash
git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && ./bootstrap.sh
git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh
```

To update, `cd` into your local `dotfiles` repository and then:

```bash
./bootstrap.sh
source bootstrap.sh
```

Alternatively, to update while avoiding the confirmation prompt:

```bash
./bootstrap.sh -f
set -- -f; source bootstrap.sh
```

### Git-free install
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
@@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
cd "$(dirname "${BASH_SOURCE}")"
git pull
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
Expand Down

0 comments on commit 473766d

Please sign in to comment.