Skip to content

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

License

Notifications You must be signed in to change notification settings

sharedwonder/windows-terminal-context-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

Windows Terminal Context Menu

This project is licensed under the MIT licence.

Be revised from lextm/windowsterminal-shell.

Introducing

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/sharedwonder/windows-terminal-context-menu.git

Then open PowerShell and run generate.ps1.

If your system does not allow to execute unsigned PowerShell scripts, 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

  • Folded: All profiles are in the tier-2 menu (default)
  • Unfolded: All profiles are in the tier-1 menu
  • Minimal: Minimal layout (run with the default profile)

-Extended: Whether the menus are extended

  • No: No (default)
  • Yes: Yes
  • Admin: Only the item(s) that run the terminal as administrator

-NoAdmin: Do not add the item(s) 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 许可。

修改自 lextm/windowsterminal-shell

介绍

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

怎么用

注意:脚本需要新的 PowerShell(版本至少为 6)。

首先,克隆这个仓库:

git clone https://github.com/sharedwonder/windows-terminal-context-menu.git
  • 或者下载存档并将其解压。

然后打开 PowerShell 运行 generate.ps1

如果你的系统不允许执行未签名的 PowerShell 脚本,执行以下命令以允许当前 PowerShell 进程执行未签名脚本:

Set-ExecutionPolicy Bypass -Scope Process

generate.ps1 支持以下参数:

-Layout:菜单布局

  • Folded:所有配置在二级菜单(默认)
  • Unfolded:所有配置在一级菜单
  • Minimal:迷你布局(以默认配置运行)

-Extended:是否为扩展菜单

  • No:否(默认)
  • Yes:是
  • Admin:仅以管理员身份运行的条目

-NoAdmin: 不添加以管理员身份运行的项

-Language:指定要在菜单中使用的语言,如果未指定,将使用系统语言

要移除菜单,请运行 remove.ps1