As most of you know, it is possible to open a new Command Line in the current folder from the file explorer. For this you have to write 'cmd' in the folder path.
Is there a way to do this with the new Windows Terminal (Preview) yet? As this is currently my preferred shell.
04 Answers
Simply type in wt in the address bar and it will open the command prompt with the path to your current folder already set.
Make sure that your settings do not overwrite startingDirectory.
You can try this command in the folder path:
wt -d .EDIT: Microsoft mentions the previous command in one of their videos alongside with many interesting features of Windows Terminal 1.0
3To fix this:
- Open Windows Terminal
- Click the down arrow in the toolbar to get the menu and select "Settings"
Update your profiles.json defaults so that all shells starting directory is the current directory
"profiles": { "defaults": { // Put settings here that you want to apply to all profiles "startingDirectory": "." }...
From at least v0.9.433.0 on Windows 10 onwards the default value for "startingDirectory" in defaults.json on my machine is "%USERPROFILE%", which means typing "wt" in an explorer window opens in your home directory, not the current folder.
3For quite some time, there is a PowerShell module called OpenHere that gives you granular options to control this functionality.
All you need is to copy paste this into PowerShell with elevated rights:
Install-Module -Name OpenHere; Import-Module -Name OpenHereand start to explore the Set-OpenHereShortcut function.
Disclosure:
I'm a developer of this module.