Created
March 11, 2014 16:34
-
-
Save chasingmaxwell/9489518 to your computer and use it in GitHub Desktop.
Revisions
-
chasingmaxwell created this gist
Mar 11, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #!/bin/sh # Run the vagrant command for a particular project from anywhere. # # To use: # 1. Put this file in ~/bin/ or some other executable path (also make sure the # file is executable). # 2. Insert the path to the directory containing your project's Vagrantfile # where indicated below. # 3. Rename this file to match the project you're using it for. # # Now you can use this script as a replacement for the "vagrant" command. For # example, if you renamed this file "projectname" you could start up your # vagrant vm for that project from anywhere with `projectname up`. Then # suspend it again with `projectname suspend`. vagrant_directory="/path/to/the/directory/containing/your/vagrantfile" cd $vagrant_directory vagrant "$@"