Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on June 6, 2024

it works fine both in powershell 6.2 and 5.1 , but in 6.2 it doesn't display the extra Set-PSReadlineKeyHandler : The term 'Set-PSReadlineKeyHandler' is ... message

the powershell session is not a admin session.

from scoop-completion.

Moeologist avatar Moeologist commented on June 6, 2024

Thank you for reporting.
I will remove Set-PSReadlineKeyHandler from this module.
Temporary solution: install PSReadline manually to make MenuComplete work. (without MenuComplete, Tab will not show menu but cycle completion words)

Install-Module -Scope CurrentUser PSReadline

from scoop-completion.

Moeologist avatar Moeologist commented on June 6, 2024

see url

These articles documents PSReadLine v2.0. This version ships in PowerShell v6 and the Windows 10 October 2018 Update (Build 1809).

Windows10 1903 should contained this module.

C:\WINDOWS\system32
❯ Get-Module -All|Select-Object Name,Path|Sort -Property Path


Name                                         Path
----                                         ----
PackageManagement                            C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PowerShell.PackageManagement.dll
PowerShellGet                                C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1
Microsoft.PowerShell.PSReadLine              C:\Program Files\WindowsPowerShell\Modules\PSReadline\2.0.0\Microsoft.PowerShell.PSReadLine.dll
PSReadline                                   C:\Program Files\WindowsPowerShell\Modules\PSReadline\2.0.0\PSReadLine.psm1

from scoop-completion.

 avatar commented on June 6, 2024

well, this is what I did in powershell 5.1.
from user directory and from C:\WINDOWS\system32

> Get-Module -All

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     3.0.0.0    Microsoft.PowerShell.Commands.Ma... {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con...

from user directory

> Get-Module -All|Select-Object Name,Path|Sort -Property Path

Name                                      Path
----                                      ----
Microsoft.PowerShell.Commands.Utility.dll C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.U...
Microsoft.PowerShell.Utility              C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Ut...
Microsoft.PowerShell.Utility              C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Ut...

from C:\Windows\System32

> Get-Module -All|Select-Object Name,Path|Sort -Property Path

Name                                         Path
----                                         ----
Microsoft.PowerShell.Commands.Management.dll C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Command...
Microsoft.PowerShell.Commands.Utility.dll    C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Command...
Microsoft.PowerShell.Management              C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell...
Microsoft.PowerShell.Utility                 C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell...
Microsoft.PowerShell.Utility                 C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell...

from scoop-completion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.