Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to append to an existing variable #16

Closed
franzlst opened this issue Aug 5, 2016 · 4 comments
Closed

Add possibility to append to an existing variable #16

franzlst opened this issue Aug 5, 2016 · 4 comments
Assignees
Milestone

Comments

@franzlst
Copy link

franzlst commented Aug 5, 2016

For an .env script like

PATH=/my/path:${PATH}

the plugin should prepend the current PATH with /my/path. Thus, if PATH=/another/path, the environment should result in PATH=/my/path:/another/path. Currently, PATH ends up being /my/path:${PATH}

@ashald
Copy link
Owner

ashald commented Aug 10, 2016

Proper support would required shell script interpreter invocation but maybe we can go with simplified support where only $NAME or ${NAME} is supported (as opposed to ${NAME:-default} and so on). Would it suit your use-case?

@ashald ashald self-assigned this Aug 10, 2016
@franzlst
Copy link
Author

Yes, that would be perfect. That would be the same behavior as in the "Environmental variables" that you can set manually in the PyCharm run configuration.

@ashald
Copy link
Owner

ashald commented Jan 22, 2017

@ashald ashald added this to the 2.1.0 milestone Jan 22, 2017
@ashald ashald modified the milestones: 2.1.0, 2.2.0 Mar 14, 2017
ashald pushed a commit that referenced this issue Oct 7, 2018
* enhancement for #16

* Added check for vars defined in the .env files

* Fixed precedence, updated readme with relevant details

* More readme changes and additional test case
@ashald ashald closed this as completed in e22a322 Oct 12, 2018
@ashald
Copy link
Owner

ashald commented Oct 12, 2018

Implemented, will be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants