Merge pull request #288 from skwp/easy_install

Change installation script
This commit is contained in:
Yan Pritzker 2013-04-08 07:32:30 -07:00
commit c892838e09
2 changed files with 17 additions and 5 deletions

View File

@ -8,8 +8,7 @@
# Yet Another Dotfile Repo v1.1
# Now with Prezto and Vundle!
git clone https://github.com/skwp/dotfiles ~/.yadr
cd ~/.yadr && rake install
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`"
**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:
```bash
git clone https://github.com/skwp/dotfiles ~/.yadr
cd ~/.yadr && rake install
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`"
```
**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:
```bash
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`" -s ask
```
# Additional Installation

11
install.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if [ ! -d "$HOME/.yadr" ]; then
echo "Installing YADR for the first time"
git clone https://github.com/skwp/dotfiles.git "$HOME/.yadr"
cd "$HOME/.yadr"
[ "$1" == "ask" ] && export ASK="true"
rake install
else
echo "YADR is already installed"
fi