All Projects → 0x7FFFFFFFFFFFFFFF → Open_in_Windows_Terminal

0x7FFFFFFFFFFFFFFF / Open_in_Windows_Terminal

Licence: other
No description or website provided.

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to Open in Windows Terminal

vue3-context-menu
A very simple context menu component for Vue3 一个简洁美观简单的Vue3右键菜单组件
Stars: ✭ 74 (+208.33%)
Mutual labels:  contextmenu, context-menu
rctx-contextmenu
✨ Context menu for React
Stars: ✭ 23 (-4.17%)
Mutual labels:  contextmenu, context-menu
WSL-Context-Menu-Manager
Manages the context menu for your Linux tools in WSL/WSL2 for Windows.
Stars: ✭ 25 (+4.17%)
Mutual labels:  context-menu, windows-terminal
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (+575%)
Mutual labels:  contextmenu, context-menu
Context Menu.ios
You can easily add awesome animated context menu to your app.
Stars: ✭ 1,854 (+7625%)
Mutual labels:  contextmenu, context-menu
elm-contextmenu
Flexible context menu for Elm
Stars: ✭ 16 (-33.33%)
Mutual labels:  contextmenu, context-menu
ctxmenu
Tiny and customizable context menu generator
Stars: ✭ 20 (-16.67%)
Mutual labels:  contextmenu, context-menu
JonContextMenu
A beautiful and minimalist arc menu like the Pinterest one, written in Swift
Stars: ✭ 60 (+150%)
Mutual labels:  contextmenu, context-menu
VirusTotalScanner
Scan suspicious applications with over 60 different anti-viruses with a mere two clicks and five seconds!
Stars: ✭ 18 (-25%)
Mutual labels:  contextmenu, context-menu
Ngcontextmenu
Handcraft your very own context menus for a richer UX!
Stars: ✭ 81 (+237.5%)
Mutual labels:  contextmenu, context-menu
ShellAnything
ShellAnything is a C++ open-source software which allow one to easily customize and add new options to *Windows Explorer* context menu. Define specific actions when a user right-click on a file or a directory.
Stars: ✭ 103 (+329.17%)
Mutual labels:  contextmenu, context-menu
ng2-right-click-menu
Right click context menu for Angular 2+
Stars: ✭ 51 (+112.5%)
Mutual labels:  contextmenu, context-menu
WTToolbox
💻 A set of PowerShell commands for managing and using the Windows Terminal application.
Stars: ✭ 47 (+95.83%)
Mutual labels:  windowsterminal
bookmarklets-context-menu
WebExtension allow to execute bookmarklets as privileged scripts
Stars: ✭ 67 (+179.17%)
Mutual labels:  contextmenu
xMenuTools
Extended context menu tools for Windows
Stars: ✭ 56 (+133.33%)
Mutual labels:  context-menu
Modern-UI-Components-for-VBA
A helper dll for VBA users to design modern UI components. No install required!
Stars: ✭ 139 (+479.17%)
Mutual labels:  contextmenu
Dotfiles
Configuration files for my environment
Stars: ✭ 45 (+87.5%)
Mutual labels:  windows-terminal
xontrib-prompt-bar
The bar prompt for xonsh shell with customizable sections and Starship support.
Stars: ✭ 27 (+12.5%)
Mutual labels:  windows-terminal
windows-terminal-tweaker
Tweak your windows terminal to heart's content with this app using its beautiful interface to configure everything about the terminal.
Stars: ✭ 77 (+220.83%)
Mutual labels:  windows-terminal
dislash.py
A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.
Stars: ✭ 172 (+616.67%)
Mutual labels:  context-menu

Add "Open Windows Terminal" to your context menu

Introduction

This repository contains some scripts to create a context menu item Open Windows Terminal. You can right click on any file, folder and the empty area of a folder to get this menu. See below demo.gif for the effects of the script.

How to use

  • Install Windows Terminal
  • Run a PowerShell session as administrator and execute the command Set-ExecutionPolicy RemoteSigned -Force
  • Download install.ps1
  • Right click install.ps1, choose Run with PowerShell. This will generate wt.reg and wt_nonadmin.reg.
  • Double click wt.reg, click Yes and OK. This will add an entry Open Windows Terminal to your context menu.
  • Optionally, double click wt_nonadmin.reg, click Yes and OK. This will add an entry Open Windows Terminal(Non-Admin) to your context menu.

Now you can try to right click on something to see if it works.

Note that it is suggested to close UAC, otherwise you will see this every time you click context menu item Open Windows Terminal.

How does it work?

  • The reg file adds entries to your registry so that you will have context menu item added.
  • The install.ps1 file adds some code to your PowerShell profile, which will be executed whenever you open a PowerShell command line.
  • When you click the "Open Windows Terminal" context menu item, the full path of the current directly (if you are clicking on the blank area of a folder or if you are clicking on a folder) or the current file (if you are clicking on a file) will be stored in a temp file $env:TEMP\windows_terminal_current_dir.temp and a Windows Terminal session will be opened.
  • The added code to PowerShell profile will check if the current PowerShell session is Windows Terminal, if it was run as administrator, if the file $env:TEMP\windows_terminal_current_dir.temp exists and whether the full path in $env:TEMP\windows_terminal_current_dir.temp refers to a file or a folder etc. and properly set the location to the one stored in $env:TEMP\windows_terminal_current_dir.temp and remove it.
  • It's possible that a new Windows Terminal will open (ensure it's run as administrator) and the old one close. That's why you will probably see window flashes.

Problem

  • As you see in the demo.gif, the PowerShell Window will flash one or two times (based on your configuration). I don't know how to solve this. This is not an issue to me, though. Please let me know if you have any ideas on this.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].