Skip to content

Automatically generates the right click menu of "Terminal here" (Windows Terminal).

License

Notifications You must be signed in to change notification settings

MythicAstra/windows-terminal-context-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

Windows Terminal Context Menu

The script provided by this repository can generate Terminal here right-click menus in File Explorer for Windows Terminal.

How to use

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

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 menu
  • Minimal: Minimal layout (run with the default profile)

-Extended: Whether are extended menus (shows only when holding down the Shift key)

  • No: No (default)
  • Yes: Yes
  • Admin: 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 上下文菜单

该仓库提供的脚本可以为 Windows Terminal 在文件管理器中生成 在此处打开终端 的右键菜单。

怎么用

注意:脚本需要新的 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