当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 0

abgox / PS-completions
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

👉PSCompletions —— 一个更好的管理补全的方式👈

license code size repo size

English | 简体中文 | Github | Gitee

PowerShell 中的一些命令补全

如何使用它们(以 scoop-tab-completion 为例)

如何去安装

  1. 以管理员身份运行PowerShell

  2. 运行以下代码:

    Install-Module scoop-tab-completion
  3. 重启Powershell后运行:

    Import-Module scoop-tab-completion

    或者添加到配置文件中:

    echo "Import-Module scoop-tab-completion" >> $PROFILE

    这样就不用每次打开 Powershell 引入这个模块

如何卸载

  1. 以管理员身份运行PowerShell.

  2. 运行以下代码:

    Uninstall-Module scoop-tab-completion

Tip

  • WindowsPowerShell 也可以使用
  • $PROFILE中设置 Tab 补全菜单后,补全体验更好
    • echo "Set-PSReadLineKeyHandler -Key 'Tab' -Function MenuComplete" >> $PROFILE
  • 补全提示语言默认为系统语言,除非设置变量
    • $tab_completion_language="en-US"
    • 可用语言范围: en-USzh-CN
      • 如果变量值不在此范围内,则使用系统语言
      • 如果系统语言不在此范围内,则使用 en-US

示例

scoop demo

MIT License Copyright (c) 2023 abgox Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Some tab completion in powershell (PowerShell 中的命令补全) 展开 收起
PowerShell 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PowerShell
1
https://gitee.com/abgox/PS-completions.git
git@gitee.com:abgox/PS-completions.git
abgox
PS-completions
PS-completions
main

搜索帮助