alexc7018 / vvv-site-wizard

Automates setting up new WordPress sites in Varying Vagrant Vagrants
GNU General Public License v2.0
347 stars 47 forks source link

Path config option? #4

Closed tnguyen14 closed 10 years ago

tnguyen14 commented 10 years ago

The source code says

# When not called from the VVV root directory, the script will prompt the user
# for the path to VVV. To run this from any directory and skip that prompt,
# uncomment the following line and set it to the VVV root dir:
#path=/path/to/vvv/root

However, uncommenting that will create a new file change in git. Should there be a better way to configure this without changing the source? Perhaps an environment variable?

alexc7018 commented 10 years ago

I just rewrote the script to use options instead of positional parameters. You can set the -p option to your VVV path when you run the command. If you don't want to include that every time, you can add an alias to your .bashrc file to include it in the command.