{"id":22218684,"url":"https://github.com/littlenewton/wt-here","last_synced_at":"2025-04-09T13:05:42.351Z","repository":{"id":37398962,"uuid":"266188836","full_name":"LittleNewton/wt-here","owner":"LittleNewton","description":"在 Windows 右键菜单中添加 Windows Terminal 启动选项","archived":false,"fork":false,"pushed_at":"2024-04-08T07:19:04.000Z","size":957,"stargazers_count":221,"open_issues_count":0,"forks_count":48,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-09T13:05:37.857Z","etag":null,"topics":["powershell","right-click-menu","windows-terminal"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LittleNewton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T19:13:11.000Z","updated_at":"2025-04-04T03:31:47.000Z","dependencies_parsed_at":"2024-12-02T22:34:10.347Z","dependency_job_id":"cae91bc3-084c-4ad4-b2b0-2453cda9db2f","html_url":"https://github.com/LittleNewton/wt-here","commit_stats":null,"previous_names":["littlenewton/wt-here","littlenewton/open_windows_terminal_here"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2Fwt-here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2Fwt-here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2Fwt-here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2Fwt-here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LittleNewton","download_url":"https://codeload.github.com/LittleNewton/wt-here/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045231,"owners_count":21038553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","right-click-menu","windows-terminal"],"created_at":"2024-12-02T22:28:42.594Z","updated_at":"2025-04-09T13:05:42.327Z","avatar_url":"https://github.com/LittleNewton.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Windows Terminal Here\n\n*A project backed by [LeXtudio Inc.](https://www.lextudio.com)*\n\n## 1. 安装指南\n\n1. [安装 Windows Terminal](https://github.com/microsoft/terminal).\n2. [安装 PowerShell 7](https://github.com/PowerShell/PowerShell).\n3. 以**管理员身份**启动 PowerShell 7 控制台 (Powershell 5 是**不行**的)，然后运行 `src` 目录下的 `install.ps1` 脚本，将【上下文菜单项】安装到 Windows 资源管理器。现在，菜单项已添加到 Windows 资源管理器上下文菜单了。\n\n![layout](img/all_in_one.jpg)\n\u003e **图 1**: 三种安装方式，注意，一定要在**管理员模式**下安装，切记！(个人比较喜欢**默认**的 `Mini` 模式)\n\n## 2. 安装示例\n\n### 2.1 Windows 10 安装\n\n1. 以管理员身份打开刚安装好的 Powershell Core 7，然后切换工作目录到本库\n2. 确保网络畅通；\n3. 执行 `install.ps1`，然后你将获得一个**类似图 1 中的第 1 幅图**的桌面、文件夹右键菜单。\n\n\u003e 如果只运行 `install.ps1` 而不加参数，那么菜单项将以 `Mini` 布局组织。 其他布局（如 `Default` 和 `Flat`）具有不同的外观。 要应用其他布局（如 `Flat`），只需运行 `install.ps1 Flat`。\n\n**由于项目维护者 [@LittleNewton](https://github.com/LittleNewton/) 不喜欢 Windows 11，因此不保证脚本在该系统上的可用性。**\n\n### 2.2 Windows Server 2022 安装\n\nAdministrator 用户可通过添加自定义路径参数的方式执行脚本：\n\n``` powershell\n# 注意替换自定义的路径\n.\\install.ps1 -CustomPath \"C:\\Users\\Administrator\\bin\\Microsoft Windows Terminal\"\n```\n\n对于 Windows Server 2022 普通用户，可以通过执行 `$WithNormal` 命令开关的方式，添加两个右键菜单，分别为普通用户和管理员用户，命令如下：\n\n``` powershell\n# 注意替换自定义路径\n.\\install.ps1 -CustomPath \"D:\\Users\\newton\\bin\\Microsoft Windows Terminal\" -WithNormal\n```\n\n除此之外，其他细节同普通 Windows 10.\n\n## 3. 卸载\n\n以管理员身份，在 PowerShell 7 中，执行 `uninstall.ps1` 即可删除该配置。\n\n## 4. 注意\n\n- 当前版本仅支持 Windows 10 和 Windows Server 2022；\n- `install.ps1` 和 `uninstall.ps1` 脚本**必须**以管理员身份运行；\n- **必须**在版本 \u003e= 6 的 PowerShell 下执行脚本；\n- `install.ps1` 和 `uninstall.ps1` 仅操作上下文菜单项的 Windows 资源管理器设置，而不写入 Windows Terminal 的设置；\n- 从 GitHub 下载 Windows Terminal 图标 (在 `install.ps1` 中) 需要 Internet 连接，最好在运行 `install.ps1` 时，将代理软件设置为全局代理；\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlenewton%2Fwt-here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittlenewton%2Fwt-here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlenewton%2Fwt-here/lists"}