The script provided by this repository can generate Terminal here
right-click menus in File Explorer for Windows Terminal.
-
Licensed under the MIT licence.
-
Be revised from lextm/windowsterminal-shell.
Note: The scripts require new PowerShell (version at least 6).
First, clone this repository:
git clone https://github.com/Astruflare/windows-terminal-context-menu.git
- or download the archive and extract it.
Then open PowerShell and run generate.ps1
.
If your system does not allow to execute unsigned PowerShell scripts, you can execute the following command to allow the current PowerShell process to execute unsigned scripts:
Set-ExecutionPolicy Bypass -Scope Process
generate.ps1
supports the following parameters:
-Layout
: Indicates the menus layout
Compact
: Items in tier-2 menu (default)Flat
: Items in tier-1 menuMinimal
: Minimal layout (run with the default profile)
-Extended
: Whether are extended menus (shows only when holding down the Shift
key)
No
: No (default)Yes
: YesAdmin
: Only the items that run the terminal as administrator
-NoAdmin
: Do not add items that run the terminal as administrator
-Language
: Specifies which language to use in the menu (if not specified, the system language will be used)
To remove the menus, please run remove.ps1
.
该仓库提供的脚本可以为 Windows Terminal 在文件管理器中生成 在此处打开终端
的右键菜单。
-
以 MIT Licence 许可。
注意:脚本需要新的 PowerShell(版本至少为 6)。
首先,克隆这个仓库:
git clone https://github.com/Astruflare/windows-terminal-context-menu.git
- 或者下载存档并将其解压。
然后打开 PowerShell 运行 generate.ps1
。
如果你的系统不允许执行未签名的 PowerShell 脚本,你可以执行以下命令以允许当前 PowerShell 进程执行未签名脚本:
Set-ExecutionPolicy Bypass -Scope Process
generate.ps1
支持以下参数:
-Layout
:菜单布局
Compact
:条目在二级菜单(默认)Flat
:条目在一级菜单Minimal
:迷你布局(以默认配置运行)
-Extended
:是否为扩展菜单(仅在按住 Shift
键时显示)
No
:否(默认)Yes
:是Admin
:仅以管理员身份运行的条目
-NoAdmin
: 不添加以管理员身份运行的条目
-Language
:指定要在菜单中使用的语言(如果未指定,将使用系统语言)
要移除菜单,请运行 remove.ps1
。