Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a simple shell script to install my bash profile automatically…

… via the power of the internet...! Upon successful SSH into a new box:

    curl https://raw.github.com/al-the-x/Bash_Profiles/tree/master/install.sh | bash
  • Loading branch information...
commit b6bfa091c38c49f6c4ed033b86132362b55e2d1d 1 parent 820a721
David Rogers authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 bin/install.sh
17 bin/install.sh
View
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if [[ -z $(which git) ]]; then
+ echo 'Is git installed yet?' 1>&2
+ exit 1
+fi
+
+GIT="$(which git) --git-dir=$HOME/.git --work-tree=$HOME"
+GITHUB="git@github.com:al-the-x/Bash_Profiles.git"
+
+( $GIT init &&
+ $GIT remote add origin $GITHUB &&
+ $GIT remote show origin &&
+ $GIT pull origin master &&
+ $GIT submodules update --init
+)
+
Please sign in to comment.
Something went wrong with that request. Please try again.