Skip to content

Instantly share code, notes, and snippets.

@imrodrigoalves
Last active January 8, 2022 10:37
Show Gist options
  • 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