vagrant_local_status
is a Bash function that returns the name and status the relevant Vagrant machine for the current directory.
The primary use case is in your PS1
environment variable, so the status of your current project's Vagrant machine is always visible at every shell prompt. Here's an example of my Bash prompt in a test project dir:
[01:29 PM]-[1506]-[justin@justin]-[~/projects/test]-[dev u= bb/dev @d59dc2d]-[vagrant:poweroff]
$
(vagrant:poweroff
is the output of vagrant_local_status
)