Permalink
Browse files

Add install script

  • Loading branch information...
1 parent e1eb011 commit d82d8fbbe8fe0ab67781136177684d34b79d71ca Mark Szymanski committed Jun 28, 2011
Showing with 28 additions and 0 deletions.
  1. +28 −0 install.sh
View
@@ -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

0 comments on commit d82d8fb

Please sign in to comment.