PSCompletions

PSCompletions(psc)

English | 简体中文 | Github | Gitee

license module version PowerShell Gallery code size repo size created


喜欢这个项目?请给它一个 ⭐️ 或 赞赏 💰

介绍

[!Tip]

Demo

[!Tip]

demo

新的变化

常见问题

安装

[!Warning]

  1. 打开 PowerShell
  2. 安装模块:

    • 普通安装

      Install-Module PSCompletions
      
    • 静默安装:

      Install-Module PSCompletions -Repository PSGallery -Force
      
    • 使用 Scoop 安装

      • 添加 abyss bucket (GithubGitee)
      • 安装它

        scoop install abyss/abgox.PSCompletions
        
  3. 导入模块:
    Import-Module PSCompletions
    
    • 如果不想每次启动 PowerShell 都需要导入 PSCompletions 模块,你可以使用以下命令将导入语句写入 $PROFILE
      echo "Import-Module PSCompletions" >> $PROFILE
      
    • 推荐将 Import-Module PSCompletions 添加到 $PROFILE 中靠前的位置,避免出现 编码问题
    • 关于补全触发按键

卸载

  1. 打开 PowerShell
  2. 卸载模块:
    Uninstall-Module PSCompletions
    

使用

[!Tip]

git 补全为例

  1. psc add git
  2. 然后你就可以输入 git, 按下 Space(空格键) Tab 键来获得命令补全
  3. 关于 psc 的更多命令用法,你只需要输入 psc 然后按下 Space(空格键) Tab 键触发补全,通过 补全提示信息 来了解

贡献

Tips

关于补全触发按键

[!Warning]

关于补全更新

关于选项类补全

关于补全菜单

关于菜单增强

关于特殊符号

[!Tip]

关于补全提示信息

关于语言

确定语言

  1. 确定指定的语言: 如果有 Completion language,优先使用它,没有则使用 Global language
  2. 确定最终使用的语言:
    • 判断第一步确定的值是否存在于 Available language
    • 如果存在,则使用它
    • 如果不存在,直接使用 Available language 中的第一种语言(一般为 en-US)

关于路径补全

致谢

补全列表

|Completion|Language|Description| |:-:|-|-| |7z|en-US
zh-CN(100%)|7-Zip 的命令行 cli 程序。| |arch|en-US
zh-CN(100%)|显示当前系统架构。
补全基于 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 运行时和工具包。| |cargo|en-US
zh-CN(100%)|cargo - Rust 包管理器。| |chfs|en-US
zh-CN(100%)|CuteHttpFileServer - 一个免费的、HTTP协议的文件共享服务器。| |choco|en-US
zh-CN(100%)|choco(chocolatey) - 软件管理。| |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 - 二进制包和环境管理器。| |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%)|复制并转换文件系统资源。
补全基于 uutils/coreutils 编写。| |deno|en-US
zh-CN(100%)|Deno - 安全的 JavaScript 和 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 - 容器应用开发。| |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%)|快速、简单的 Node.js 版本管理器,使用 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(94.93%)|Git - 版本控制系统。| |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 又称 K8s,是一个开源系统,用于自动化部署、扩展和管理容器化应用程序。
kubectl 是它的命令行工具| |link|en-US
zh-CN(100%)|调用 link 函数为现有的 FILE1 创建名为 FILE2 的链接。
补全基于 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.| |mise|en-US
zh-CN(3.39%)|mise is a task runner and dev tools manager for any language.| |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 - 面向开发人员的统一入口平台。
将 localhost 连接到 Internet 以测试应用程序和 API。| |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 - 软件包管理器。| |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 镜像源管理。| |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 版本管理器。| |od|en-US
zh-CN(4.65%)|Dump files in octal and other formats.
Completion was written based on uutils/coreutils.| |oh-my-posh|en-US
zh-CN(7.41%)|oh-my-posh 是一款跨平台工具,用于渲染你的终端提示符。| |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 包管理器。| |pnpm|en-US
zh-CN(100%)|pnpm - 软件包管理器。| |powershell|en-US
zh-CN(100%)|Windows PowerShell 命令行 CLI. (powershell.exe)| |psc|en-US
zh-CN(97.63%)|PSCompletions 模块的补全提示
它只能更新,不能移除
如果移除它,将会自动重新添加| |pwsh|en-US
zh-CN(100%)|PowerShell 命令行 CLI。(pwsh.exe)| |python|en-US
zh-CN(100%)|python - 命令行。| |scoop|en-US
zh-CN(100%)|Scoop - 软件管理| |scoop-install|en-US
zh-CN(100%)|一个 PowerShell 脚本,它允许你添加 Scoop 配置,在 Scoop 安装应用时使用替换后的 url 而不是原始的 url。| |scoop-update|en-US
zh-CN(100%)|一个 PowerShell 脚本,它允许你添加 Scoop 配置,在 Scoop 更新应用时使用替换后的 url 而不是原始的 url。| |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.| |uv|en-US
zh-CN(10%)|一个极其快速的 Python 包和项目管理器,用 Rust 编写。| |volta|en-US
zh-CN(100%)|volta - 无障碍 JavaScript 工具管理器。| |winget|en-US
zh-CN(100%)|WinGet - Windows 程序包管理器。| |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 - 适用于 Linux 的 Windows 子系统。| |wt|en-US
zh-CN(100%)|Windows Terminal 命令行终端。
你可以使用此命令启动一个终端。| |yarn|en-US
zh-CN(100%)|yarn - 软件包管理器。| |…|…                          |…|