Skip to content

Instantly share code, notes, and snippets.

@systemist
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save systemist/32da32a6a799e8ec57a1 to your computer and use it in GitHub Desktop.
Save systemist/32da32a6a799e8ec57a1 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -n "Checking OS version... "
if [[ $(sw_vers -productVersion) != 10.9.* ]]; then
echo "Your OS version is out of date."
exit 1
else
echo "YES"
fi
echo -n "Checking if XCode is installed... "
hash xcodebuild 2>/dev/null
if [ $? -ne 0 ]; then
echo "You don't have XCode installed"
exit 1
else
echo "YES"
fi
echo -n "Checking Homebrew is installed... "
hash brew 2>/dev/null
if [ $? -ne 0 ]; then
echo "You don't have Homebrew installed"
exit 1
else
echo "YES"
fi
echo -n "Checking git is installed... "
hash git 2>/dev/null
if [ $? -ne 0 ]; then
echo "You don't have git installed"
exit 1
else
echo "YES"
fi
echo -n "Checking hub is installed... "
hash hub 2>/dev/null
if [ $? -ne 0 ]; then
echo "You don't have hub installed"
exit 1
else
echo "YES"
fi
echo -n "Checking if Atom is installed... "
hash atom 2>/dev/null
if [ $? -ne 0 ]; then
echo "Atom is either not installed or misconfigured."
exit 1
else
echo "YES"
fi
echo -n "Checking if node is installed... "
hash node 2>/dev/null
if [ $? -ne 0 ]; then
echo "node isn't installed"
exit 1
else
echo "YES"
fi
echo -n "Checking if you have atom set up as your git editor... "
if [[ $(git config --global core.editor) != atom* ]]; then
echo "You don't have atom set as your git editor"
exit 1
else
echo "YES"
fi
echo "Finally, if you have SSH keys set up, you should see your GitHub username:"
ssh -T git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment