Skip to content

A completion manager for better and simpler use and Manage completions.

License

Notifications You must be signed in to change notification settings

jimsforks/PSCompletions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨PSCompletions(psc) ✨

English | 简体中文 | Github | Gitee

license code size code size created


Introduce

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

    It can also be used in Windows PowerShell

  • Manage the completion together.
  • Switch between languages(zh-CN,en-US) freely.
  • Sort completion tab dynamically by frequency of use.
  • Complete content can be customized.
    • By modifying the json file to achieve.
      • It's recommended to modify only the completion prompt description to avoid accidental modification that causes some errors.
      • If you do it, don't use psc update to avoid overwriting your customizations.
      • If there are problems, please use psc update <completion> to overwrite completion
    • Get the completion file path. psc which <completion>

If you find this project helpful, please consider giving it a star ⭐.

How to install

  1. Start PowerShell
  2. Install-Module PSCompletions
  3. Import-Module PSCompletions
    • echo "Import-Module PSCompletions" >> $PROFILE
    • So you don't have to import the module every time you open PowerShell.

How to uninstall

  • Uninstall-Module PSCompletions

How to use(e.g. git)

  • If it doesn't include the completion you want, you can submit an issue and I will consider adding it.
  1. psc add git
  2. Then you can type git,Space and press Tab to get command completion.
  3. For more commands on psc, you can learn by typing psc and then pressing Tab.

Demo

PSCompletions-demo.gif

Tips

About special symbols in Completion Description

  • ✨: Press Space and Tab to get command completion when it's selected. (except for special cases)
  • ✨✨:Type a string without spaces, then press Space and Tab to get command completion.
  • ...: The description here will be filled in in the future.
    • If ... is the last one in the completion, it means that the display area is too small to display all completions.

About path completion

  • Please type ./ or .\ and press Tab to get path completion for the subdirectory or file.
  • Please type / or \ and press Tab to get path completion for the sibling directory.

Available Completions List

Completions Source
PSCompletions PSCompletions - Module completion
git Git - Version control system
wsl WSL - Windows Subsystem for Linux
wt windows terminal command line
docker docker - Container Application Development
scoop Scoop - Software Manager
choco choco(chocolatey) - Software Manager
volta volta - Accessible JavaScript Tool Manager
nvm nvm - Node Version Manager
pnpm pnpm - Package Manager
npm npm - package manager
nrm nrm - npm registry manager
yarn yarn - package manager
chfs chfs(CuteHttpFileServer)
python python - A programming language
... ...

About

A completion manager for better and simpler use and Manage completions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%