Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created March 12, 2014 15:44
Show Gist options
  • Save donaldallen/9509497 to your computer and use it in GitHub Desktop.
Save donaldallen/9509497 to your computer and use it in GitHub Desktop.
If you keep all your websites in one directory, this is a pretty handy way to run vagrant up. $ start WebsiteFolderName
#!/bin/sh
DIRECTORY="/Users/dallen/Sites/GitHub/$1"
if [ -d "$DIRECTORY" ]; then
cd "$DIRECTORY" && vagrant up
else
echo "Directory does not exist."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment