Skip to content

Instantly share code, notes, and snippets.

@cryptiklemur
Created October 18, 2012 20:00
Show Gist options
  • Save cryptiklemur/3914451 to your computer and use it in GitHub Desktop.
Save cryptiklemur/3914451 to your computer and use it in GitHub Desktop.
Install HomeDir
#!/bin/bash
command -v git > /dev/null 2>&1 || { echo >&2 "Git is required for this install. Please install and try again. Aborting."; exit 1; }
command -v curl > /dev/null 2>&1 || { echo >&2 "Curl is required for this install. Please install and try again. Aborting."; exit 1; }
server=$1
if [ -z "$1" ]
then
echo "Specifiy a server name please (Shows up in PS1)":
read server
echo "\n"
if [ -z "$server" ]
then
exit
fi
fi
cd ~
git clone git://github.com/aequasi/HomeDir.git
echo "IGNORE THE DEVICE BUSY LINES"
sudo cp -R HomeDir/* ./
sudo cp -R HomeDir/.* ./
rmdir HomeDir.git
curl http://j.mp/spf13-vim3 -L -o - | sh
echo "HOSTNAME=\"$server\"" >> .variables.sh
echo "\nDone...\n"
sudo rm install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment