Browse files

Change installation script

Instead of asking the user to clone the repo and running rake
install, there's is now an easy .sh script that can be downloaded
and invoked in a single line.

The script takes a parameter "ask" if the use prefers to control
which modules of yadr are installed.
  • Loading branch information...
1 parent 7e1f628 commit 5df698f6d2b8ee5ab9ce2895c439c7e82921c7ab @FWFabio FWFabio committed Apr 7, 2013
Showing with 17 additions and 5 deletions.
  1. +6 −5
  2. +11 −0
@@ -8,8 +8,7 @@
# Yet Another Dotfile Repo v1.1
# Now with Prezto and Vundle!
- git clone ~/.yadr
- cd ~/.yadr && rake install
+ sh -c "`curl -fsSL`"
**Always be sure to run `rake update` after pulling to ensure plugins are updated**
@@ -45,12 +44,14 @@ Installation is automated via `rake` and the `yadr` command. To get
started please run:
-git clone ~/.yadr
-cd ~/.yadr && rake install
+sh -c "`curl -fsSL`"
**Note:** YADR will automatically install all of its subcomponents. If you want to be asked
-about each one, use `ASK=true rake install`
+about each one, use:
+sh -c "`curl -fsSL`" -s ask
# Additional Installation
@@ -0,0 +1,11 @@
+if [ ! -d "$HOME/.yadr" ]; then
+ echo "Installing YADR for the first time"
+ git clone "$HOME/.yadr"
+ cd "$HOME/.yadr"
+ [ "$1" == "ask" ] && export ASK="true"
+ rake install
+ echo "YADR is already installed"

0 comments on commit 5df698f

Please sign in to comment.