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
[WIP] conda 4.4 powershell wrapper #6471
Conversation
f3623f3
to
b2e58b5
Compare
Some code regarding prompt support can be found in the previous PR #6090 by @HyundongHwang. |
Yeah as soon as I'm able to finally wrap up #6518 I was going to see if @BCSharp was interested in contributing the official powershell wrapper that makes use of the new framework. My biggest unknown at the moment is the "right" way to initialize powershell and bootstrap in the conda-specific code. E.g. for bash we have option (1) modify
(or the |
It would appear that the "proper" way in PowerShell is to add the conda.ps1 into the $profile script. The only issue I see with that is that the user will need to modify their ExecutionPolicy before Powershell will (1) even read their own $profile script and (2) also read the conda.ps1 script. Given the ExecutionPolices, I think that you would want to get the conda.ps1 script signed (whatever that means and however one would do that). |
I would recommend doing it this way:
PowerShell will scan the files in these directories and automatically import them when the user invokes the exported command, so you shouldn't have to configure anything other than the installation. Also, for "good" PowerShell style, I'd recommend:
|
Thanks @zooba that's exactly what we needed. |
|
Update on where we are with shell wrappers in current master (4.6.x). First, all the shell wrapper files have moved slightly. They're now at https://github.com/conda/conda/blob/710d30a9cc2e2417c00c0fcdc188eeff2216fb2f/conda/shell. We currently have five varieties:
In 4.6, there is a new The general strategy of keeping the bulk of the Lines 1255 to 1256 in 710d30a
The integration tests use Line 1125 in 710d30a
which is a convenience wrapper around pexpect. |
This PR was superseded by #7794 |
Hi there, thank you for your contribution to Conda! This pull request has been automatically locked since it has not had recent activity after it was closed. Please open a new issue or pull request if needed. |
No description provided.