Skip to content

Can't load completions: _ouch.ps1 is not digitally signed #840

@yh-sb

Description

@yh-sb

Version

0.6.1

Description

Add loading ouch completions into powershell by adding following line
. "C:\Program Files\ouch\completions\_ouch.ps1" into C:\Users\y\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Current Behavior

During the Windows Terminal launch the following error message always appers:

. : File C:\Program Files\ouch\completions\_ouch.ps1 cannot be loaded. The file C:\Program
Files\ouch\completions\_ouch.ps1 is not digitally signed. You cannot run this script on the current system.
For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At C:\Users\y\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:15 char:3
+ . "C:\Program Files\ouch\completions\_ouch.ps1"
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

There are no such errors with others completions files, for example with _yazi.ps1 or _rg.ps1.

Expected Behavior

Completions loads without error in the terminal.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions