Shutdown a vagrant VM easily with an alias in your .bash_profile

Thu, 04 July 2019

.bash_profile
alias vagrant-shutdown="vagrant ssh -c 'sudo shutdown -h now'"
usage.sh
$ cd /my/project/directory
/my/project/directory$ vagrant-shutdown