https://github.com/nebularnerd/win-term-cmdhere
A quick and easy way to pop open a Command tab from a Powershell tab with the same location
https://github.com/nebularnerd/win-term-cmdhere
command-prompt command-prompt-batch commandline powershell powershell-script terminal windows-terminal windowsterminal
Last synced: 3 months ago
JSON representation
A quick and easy way to pop open a Command tab from a Powershell tab with the same location
- Host: GitHub
- URL: https://github.com/nebularnerd/win-term-cmdhere
- Owner: NebularNerd
- License: cc0-1.0
- Created: 2022-10-06T11:29:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T12:04:29.000Z (over 2 years ago)
- Last Synced: 2025-01-17T05:26:06.641Z (4 months ago)
- Topics: command-prompt, command-prompt-batch, commandline, powershell, powershell-script, terminal, windows-terminal, windowsterminal
- Language: PowerShell
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# win-term-cmdhere
A quick and easy way to pop open a Command tab from a Powershell tab with the same location.## About
Powershell is pretty good, you can do lots of things but sometimes it can be.... awkward. Say you want to quickly run a command to a UNC path but you get an error about needing permissions etc... You know you can do the same thing in command prompt but if you just open a new tab you'll then have to navigate to the folder again (not fun with long UNC paths). This little oneliner pops up a new tab (or window if your not a tab person) in WinTerm at the same folder location.https://user-images.githubusercontent.com/8470449/194303777-8bac9086-b39d-45d5-8831-c2a7f7e32395.mp4
## Usage
Just drop the cmdhere.ps1 file into a convenient location that is in your path, type `cmdhere` in a Powershell tab to pop to a command prompt. You can use this for most Windows Terminal profiles, for example if you have Admin profiles you wish to use just make a new copy of this file and change the profile name in the quotes.## Limitations
- If you are non English speaker, you'll likely need to change `"Command Prompt"` to what is used in your language.
- It will not carry any command history across shells, this is a limitation of Windows and the hodge podge mix of shells we have.