aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rwxr-xr-xbootstrap.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3ad8d15..cb2184c 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/bootstrap.sh b/bootstrap.sh
index 2170ab9..8a053a7 100755
--- a/bootstrap.sh
+++ b/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 . ~