aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2014-06-07 15:59:44 +0200
committerMathias Bynens <mathias@qiwi.be>2014-06-07 15:59:44 +0200
commit3b4eb3efb692aa4d19a1e2c30c2ed9a65e9c7d8c (patch)
treeaa8ed43008a0de86082b679d3912ac6be5fffcd9 /bootstrap.sh
parente0308459473e424701166a65fadced5e1ea2702f (diff)
downloaddotfiles-3b4eb3efb692aa4d19a1e2c30c2ed9a65e9c7d8c.tar.gz
dotfiles-3b4eb3efb692aa4d19a1e2c30c2ed9a65e9c7d8c.tar.bz2
dotfiles-3b4eb3efb692aa4d19a1e2c30c2ed9a65e9c7d8c.zip
Remove some things that I don’t use
This commit drops some aliases, functions, and settings from the project that I wasn’t using at all. It also cleans up some of the remaining code.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh26
1 files changed, 15 insertions, 11 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index b4b8f96..e7b0f07 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,18 +1,22 @@
#!/usr/bin/env bash
-cd "$(dirname "${BASH_SOURCE}")"
-git pull origin master
+
+cd "$(dirname "${BASH_SOURCE}")";
+
+git pull origin master;
+
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
- --exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~
- source ~/.bash_profile
+ --exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~;
+ source ~/.bash_profile;
}
+
if [ "$1" == "--force" -o "$1" == "-f" ]; then
- doIt
+ doIt;
else
- read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
- echo
+ read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
+ echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
- doIt
- fi
-fi
-unset doIt
+ doIt;
+ fi;
+fi;
+unset doIt;