Friday, February 5, 2021

Re: PowerShell in vim :terminal - setting the Execution Policy

1. By `:terminal powershell.exe -ep RemoteSigned`
2. I do not know. Are you sure that the Start menu does not call `pwsh.exe` instead?


Le lundi 1 février 2021 à 14:05:57 UTC+1, m a écrit :
Hi all,
I want to run a Windows PowerShell in a vim :terminal.

If I start it with

:terminal powershell.exe

I do get a powershell in a terminal buffer, but the "Execution Policy"
is set to "Restricted", which among other things prevents souricing my
profile.ps1 file.

If I start a PowerShell from the "Start" menu, the policy is set to
"RemoteSigned", which is good. The executable being run is the same in
the two cases.

So, here are the questions:
1) how can I get the "RemoteSigned" policy also in the vim terminal instance?
2) why are the two policies different if I start the PowerShell from
the Start menu or inside a vim terminal?

Thank you,
Marco

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b7d87d41-f511-4c38-b357-6848d4c6907bn%40googlegroups.com.

No comments: