Skip to content

Instantly share code, notes, and snippets.

@ergoithz
Created December 16, 2015 07:40
Show Gist options
  • Save ergoithz/cf5771f0f11b12761def to your computer and use it in GitHub Desktop.
Save ergoithz/cf5771f0f11b12761def to your computer and use it in GitHub Desktop.
Generic script to start vagrant on current directory on a terminal (great for running at startup)
#!/usr/bin/env bash
DIR=$( dirname "${BASH_SOURCE[0]}" )
cd $DIR
vagrant up
gnome-terminal -e "bash -c 'vagrant ssh';bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment