Skip to content

Instantly share code, notes, and snippets.

@imrodrigoalves
Last active January 8, 2022 10:37
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 imrodrigoalves/908f8a5f984eef902d8e606d8c8a174a to your computer and use it in GitHub Desktop.
Save imrodrigoalves/908f8a5f984eef902d8e606d8c8a174a to your computer and use it in GitHub Desktop.
Install vagrant and homestaed
Using git for windows add to your user in C:\Users\YOUR_USER_NAME a file called .bash_profile with the function
below:
function homestead() {
( cd PATH-TO-HOMESTEAD && vagrant $* )
}
You can call the function in the terminal anywhere at anytime and have direct access to homestead
Install Laravel Homestead Box
https://laravel.com/docs/6.x/homestead
Install vagrant plugin to improve file transfer speed between windows and the VM (Only Windows users)
https://github.com/winnfsd/vagrant-winnfsd
Instal vagrant hostupdater to automatically update windows hosts
https://github.com/cogitatio/vagrant-hostsupdater
Install app Vagrant Manager (1.0.0.8) to manage Vagrant boxes from system tray
https://github.com/deveres/vagrant-manager-windows/tree/1.0.0.8
Note: The latest version doens't have any issues that I found. If you find any in windows, go to this version
Change initialization of Vagrant Manager to Administration
This is required because windows hosts file requires those permissions to happen
Add initialization of bash_profile in VSCode terminal
"terminal.integrated.shellArgs.windows": [
"-l"
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment