Merge branch 'master' of https://github.com/revans/bash-it
diff --git a/README.md b/README.md
index e5c7aae..89f3d0d 100644
--- a/README.md
+++ b/README.md
@@ -6,21 +6,17 @@
## Install
-Check a clone of this repo. You can view what a sample `~/.bash_profile` looks like in `template/bash_profile.template.bash`. If you wanted to use that template, make sure to make a backup of your current `~/.bash_profile` file.
+Check a clone of this repo:
git clone http://github.com/revans/bash-it.git bash_it
- cp ~/.bash_profile ~/.bash_profile_original
- cp <path/to/cloned/repo>/template/bash_profile.template.bash ~/.bash_profile
+Then run the `install.sh` file, it will backup your `~/.bash_profile`
+file and move the template one into it's place (the template file is at
+`~/.bash_it/template/bash_profile.template.bash`). It will also prompt
+you asking if you use [Jekyll](https://github.com/mojombo/jekyll). This
+is to set up the `.jekyllconfig` file, the file that stores the
+information needed to use the Jekyll plugin supplied with bash it.
-To configure Jekyll support for bash it, move the
-jekyllconfig.template.bash to your home directory:
-
- cp <path/to/cloned/repo>/template/jekyllconfig.template.bash ~/.jekyllconfig
-
-Be sure to edit this file to your needed specifications. Please note
-that this file is *not* required. Only use it if you plan on using the
-jekyll plugins.
## Help Screens
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..3fc647b
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+cp $HOME/.bash_profile $HOME/.bash_profile.bak
+
+echo "Your original .bash_profile has been backed up to .bash_profile.bak"
+
+cp $HOME/.bash_it/template/bash_profile.template.bash $HOME/.bash_profile
+
+echo "Copied the template .bash_profile into ~/.bash_profile, edit this file to customize bash-it"
+
+while true
+do
+ read -p "Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] " RESP
+
+ case $RESP
+ in
+ [yY])
+ cp $HOME/.bash_it/template/jekyllconfig.template.bash $HOME/.jekyllconfig
+ echo "Copied the template .jekyllconfig into your home directory. Edit this file to customize bash-it for using the Jekyll plugins"
+ break
+ ;;
+ [nN])
+ break
+ ;;
+ *)
+ echo "Please enter Y or N"
+ esac
+done