PSCompletions

PSCompletions(psc)

简体中文 | English | Github | Gitee

license module version PowerShell Gallery code size repo size created


Introduce

[!Tip]

If PSCompletions is helpful to you, please consider giving it a star ⭐.

What’s new

FAQ

How to install

  1. Start PowerShell.
  2. Install module:

    • Don’t omit -Scope CurrentUser unless you’re sure you’ll always start PowerShell with administrator permissions.
      Install-Module PSCompletions -Scope CurrentUser
      
    • Install silently:
      Install-Module PSCompletions -Scope CurrentUser -Repository PSGallery -Force
      
  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
      

[!Warning]

+ Import-Module PSCompletions

- Set-PSReadLineKeyHandler -Key <key> -Function MenuComplete

How to uninstall

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

How to use

[!Tip]

  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.

Demo

demo

Contribution

Tips

About the completion trigger key

[!Warning]

+ Import-Module PSCompletions

- Set-PSReadLineKeyHandler -Key <key> -Function MenuComplete

About completion update

About option completion

About completion menu

About menu enhance v4.2.0+ support

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

Stars

If PSCompletions is helpful to you, please consider giving it a star ⭐.

stargazer-widget

</a>

Support

Buy Me a Coffee at ko-fi.com

Support

Available Completions List

|Completion|Language|Description| |:-:|-|-| |7z|en-US
zh-CN(100%)|The command line cli of 7-Zip| |arch|en-US
zh-CN(100%)|Display machine architecture.
Completion was written based on uutils/coreutils.| |b2sum|en-US
zh-CN(13.33%)|Compute and check message digests.
Completion was written based on uutils/coreutils.| |b3sum|en-US
zh-CN(13.33%)|Compute and check message digests.
Completion was written based on uutils/coreutils.| |base32|en-US
zh-CN(28.57%)|Encode/decode data and print to standard output.
Completion was written based on uutils/coreutils.| |base64|en-US
zh-CN(28.57%)|Encode/decode data and print to standard output.
Completion was written based on uutils/coreutils.| |basename|en-US
zh-CN(28.57%)|Print NAME with any leading directory components removed.
Completion was written based on uutils/coreutils.| |basenc|en-US
zh-CN(13.33%)|Encode/decode data and print to standard output.
Completion was written based on uutils/coreutils.| |bun|en-US
zh-CN(100%)|Bun - JavaScript all-in-one toolkit.| |cargo|en-US
zh-CN(100%)|cargo - Rust package manager.| |chfs|en-US
zh-CN(100%)|CuteHttpFileServer - A free, HTTP protocol file sharing server cross-platform file sharing server.| |choco|en-US
zh-CN(100%)|choco(chocolatey) - Software Manager.| |cksum|en-US
zh-CN(20%)|Print CRC and size for each file.
Completion was written based on uutils/coreutils.| |comm|en-US
zh-CN(20%)|Compare two sorted files line by line.
Completion was written based on uutils/coreutils.| |conda|en-US
zh-CN(100%)|conda - binary package and environment manager.| |csplit|en-US
zh-CN(18.18%)|Split a file into sections determined by context lines.
Completion was written based on uutils/coreutils.| |cut|en-US
zh-CN(15.38%)|Print specified byte or field columns from each line of stdin or the input files.
Completion was written based on uutils/coreutils.| |date|en-US
zh-CN(14.29%)|Print or set the system date and time.
Completion was written based on uutils/coreutils.| |dd|en-US
zh-CN(100%)|Copy, and optionally convert, a file system resource.
Completion was written based on uutils/coreutils.| |deno|en-US
zh-CN(100%)|Deno - A secure runtime for JavaScript and TypeScript.| |df|en-US
zh-CN(5.71%)|Show information about the file system on which each FILE resides, or all file systems by default.
Completion was written based on uutils/coreutils.| |dircolors|en-US
zh-CN(25%)|Output commands to set the LS_COLORS environment variable.
Completion was written based on uutils/coreutils.| |dirname|en-US
zh-CN(40%)|Strip last component from file name.
Completion was written based on uutils/coreutils.| |docker|en-US
zh-CN(100%)|docker - Container Application Development.| |du|en-US
zh-CN(2.17%)|Estimate file space usage.
Completion was written based on uutils/coreutils.| |env|en-US
zh-CN(16.67%)|Set each NAME to VALUE in the environment and run COMMAND.
Completion was written based on uutils/coreutils.| |factor|en-US
zh-CN(20%)|Print the prime factors of the given NUMBER(s).
Completion was written based on uutils/coreutils.| |fmt|en-US
zh-CN(11.76%)|Reformat paragraphs from input files (or stdin) to stdout.
Completion was written based on uutils/coreutils.| |fnm|en-US
zh-CN(8.33%)|Fast and simple Node.js version manager, built in Rust.| |fold|en-US
zh-CN(28.57%)|Writes each file (or standard input if no files are given) to standard output whilst breaking long lines.
Completion was written based on uutils/coreutils.| |git|en-US
zh-CN(99.11%)|Git - Version control system.| |hashsum|en-US
zh-CN(6.45%)|Compute and check message digests.
Completion was written based on uutils/coreutils.| |head|en-US
zh-CN(22.22%)|Print the first 10 lines of each ‘FILE’ to standard output.
Completion was written based on uutils/coreutils.| |join|en-US
zh-CN(11.11%)|For each pair of input lines with identical join fields, write a line to standard output.
The default join field is the first, delimited by blanks.
Completion was written based on uutils/coreutils.| |kubectl|en-US
zh-CN(100%)|Kubernetes, also known as K8s, is an open source system for automating deployment, scaling, and management of containerized applications.
kubectl is its command-line tool.| |link|en-US
zh-CN(100%)|Call the link function to create a link named FILE2 to an existing FILE1.
Completion was written based on uutils/coreutils.| |ln|en-US
zh-CN(11.76%)|Make links between files.
Completion was written based on uutils/coreutils.| |md5sum|en-US
zh-CN(14.29%)|Compute and check message digests.
Completion was written based on uutils/coreutils.| |mktemp|en-US
zh-CN(20%)|Create a temporary file or directory.
Completion was written based on uutils/coreutils.| |ngrok|en-US
zh-CN(100%)|ngrok - Unified Ingress Platform for developers.
Connect localhost to the internet for testing applications and APIs.| |nl|en-US
zh-CN(6.67%)|Number lines of files.
Completion was written based on uutils/coreutils.| |npm|en-US
zh-CN(100%)|npm - package manager.| |nproc|en-US
zh-CN(33.33%)|Print the number of cores available to the current process.
Completion was written based on uutils/coreutils.| |nrm|en-US
zh-CN(100%)|nrm - npm registry manager.| |numfmt|en-US
zh-CN(7.69%)|Convert numbers from/to human-readable strings.
Completion was written based on uutils/coreutils.| |nvm|en-US
zh-CN(100%)|nvm - Node Version Manager.| |od|en-US
zh-CN(4.65%)|Dump files in octal and other formats.
Completion was written based on uutils/coreutils.| |paste|en-US
zh-CN(28.57%)|Write lines consisting of the sequentially corresponding lines from each ‘FILE’, separated by ‘TAB’s, to standard output.
Completion was written based on uutils/coreutils.| |pdm|en-US
zh-CN(0.31%)|A modern Python package and dependency manager supporting the latest PEP standards.| |pip|en-US
zh-CN(99.42%)|pip - Python Package Manager.| |pnpm|en-US
zh-CN(100%)|pnpm - Package Manager.| |powershell|en-US
zh-CN(100%)|Windows PowerShell CLI. (powershell.exe)| |psc|en-US
zh-CN(97.55%)|PSCompletions module’s completion tips.
It can only be updated, not removed.
If removed, it will be automatically added again.| |pwsh|en-US
zh-CN(100%)|PowerShell CLI. (pwsh.exe)| |python|en-US
zh-CN(100%)|python - command-line.| |scoop|en-US
zh-CN(100%)|Scoop - Software Manager.| |sfsu|en-US
zh-CN(6.67%)|Scoop utilities that can replace the slowest parts of Scoop, and run anywhere from 30-100 times faster.| |volta|en-US
zh-CN(100%)|volta - Accessible JavaScript Tool Manager.| |winget|en-US
zh-CN(100%)|WinGet - Windows package manager.| |wsh|en-US
zh-CN(3.45%)|wsh is a small utility that lets you do cool things with Wave Terminal, right from the command line.| |wsl|en-US
zh-CN(100%)|WSL - Windows Subsystem for Linux.| |wt|en-US
zh-CN(100%)|Windows Terminal command line.
You can use it to start a terminal.| |yarn|en-US
zh-CN(100%)|yarn - package manager.| |…|…                          |…|