PSCompletions

PSCompletions(psc)

简体中文 | English | Powershell Gallery | Github | Gitee

license module version PowerShell Gallery code size repo size created


socialify

Star ⭐️ or Donate 💰 if you like it!

Introduce

[!Tip]

A completion manager for better and simpler use completions in PowerShell.

Demo

[!Tip]

demo

What’s new

FAQ

How to install

  1. Start PowerShell.
  2. Install module:

    • Normal:

      Install-Module PSCompletions -Scope CurrentUser
      
    • Install silently:

      Install-Module PSCompletions -Scope CurrentUser -Repository PSGallery -Force
      
    • Use Scoop:

      • Add the abyss bucket via Github or Gitee.

      • Install it.

        scoop install abyss/abgox.PSCompletions
        
  3. Import module:
    Import-Module PSCompletions
    
    • Add it to your $PROFILE to make it permanent by running the following command.
      echo "Import-Module PSCompletions" >> $PROFILE
      
    • Note: Recommend add Import-Module PSCompletions early in $PROFILE to avoid the encoding issue.
    • About the completion trigger key.

How to uninstall

  1. Start PowerShell.
  2. Uninstall module:
    Uninstall-Module PSCompletions
    

How to use

[!Tip]

Take git as an example.

  1. psc add git
  2. Then you can enter git, press Space and Tab key to get command completion.
  3. For more usages on psc, you just need to enter psc, press Space and Tab key, and you will get all usages of psc by reading the completion tip.

Contribution

Tips

About the completion trigger key

[!Warning]

About completion update

About option completion

About completion menu

About menu enhance

About special symbols

[!Tip]

About completion tip

About language

Determine language

  1. Get the specified language:
    • If there is Completion language,use it.
    • If not, use Global language.
  2. Determine the final language:
    • Determine whether the value of the first step exists in Available language.
    • If it exists, use it.
    • If not, use the first of the Available language. (It’s usually en-US)

About path completion

Acknowledgements

Available Completions