projectatomic / vagrant-service-manager

To provide the user a CLI to configure the ADB/CDK for different use cases and to provide glue between ADB/CDK and the user's developer environment.
GNU General Public License v2.0
18 stars 16 forks source link

VSM env command can have a flag to export the env variables directly #380

Closed pavanbhat21 closed 8 years ago

pavanbhat21 commented 8 years ago

This is an enhancement request.

I believe it would be great to have a flag for vsm , something like below which can actually configure the shell for the user rather than allowing him to manually run the commands. _vagrant service-manager env docker set_

optak commented 8 years ago

Good idea, but I'm not sure if it's possible. I think that in linux, you cannot influence variables in parent shell. For windows, setx would work, but not only in current shell, but always and everywhere for logged user. I hope someone know how to implement this, because it would be cool feature.

bexelbie commented 8 years ago

See #26 which is closed

@strzibny was the original reporter and may have some ideas

coolbrg commented 8 years ago

Closing this issue as it is not possible to set the environment variables directly from ruby program to shell which will persists till the shell terminates.

See reason https://github.com/projectatomic/vagrant-service-manager/issues/26#issuecomment-209447761.

Feel free to reopen it if there is any other use case.