terminal icon indicating copy to clipboard operation
terminal copied to clipboard

How to change default profile

Open elswerky opened this issue 7 years ago • 37 comments

I Want to have option to change default Terminal Windows

now when i open it it opens by default on powershell

i want to change this to open say "Arch"

image

elswerky avatar Jun 23 '19 10:06 elswerky

open settings. in the global, change the value of the "defaultProfile" to any "guid" in your case the Arch guid image

Shorotshishir avatar Jun 23 '19 10:06 Shorotshishir

Yep, that’s how you do it.

DHowett-MSFT avatar Jun 23 '19 13:06 DHowett-MSFT

Where can I find profiles.json file Path of it

Also I asked for this feature to be available in wi does terminal settings app

Also when I try to open window terminal settings it tells me no app installed can open it and ask me to choose which app to use to open settings

elswerky avatar Jun 23 '19 13:06 elswerky

When it asks, select a text editor. That’s how you open profiles.json.

DHowett-MSFT avatar Jun 23 '19 13:06 DHowett-MSFT

When it asks, select a text editor. That’s how you open profiles.json. Thanks

elswerky avatar Jun 23 '19 13:06 elswerky

Hi. Is there a way to open Windows Terminal without loading a default profile? I tried to comment "defaultProfile" but it still opens up Windows PowerShell by default. Thanks.

JSPware avatar Oct 11 '19 13:10 JSPware

You want to launch Windows Terminal with no profile? We've never considered this. What's your use case?

DHowett-MSFT avatar Oct 11 '19 15:10 DHowett-MSFT

Hi. Is there a way to open Windows Terminal without loading a default profile? I tried to comment "defaultProfile" but it still opens up Windows PowerShell by default. Thanks.

same for me, i tried but not working too.

rudiantotiofan avatar Oct 15 '19 17:10 rudiantotiofan

Y'all keep saying that but nobody has explained why they would possibly want to launch an empty terminal?

DHowett-MSFT avatar Oct 15 '19 17:10 DHowett-MSFT

I can see it being useful in a case where the user has a number of different profiles and there is not any one of them that they use the majority of the time. As it is, they always get a tab with the deemed default profile. They must then create another tab with the profile that they want to actually use, then close the tab with the default profile, which they didn't want in the first place. It's only an extra click, I suppose, but could be kindof annoying.

dseven avatar Oct 21 '19 17:10 dseven

Maybe if they pick no default profile, it opens with a basic window that lists all the profiles, and they can then click the one they want - similar to what MobaXTerm does, IIRC.

BaconTentacles avatar Mar 10 '20 17:03 BaconTentacles

The other day, I just learned I could create a profile without guid.

        {
            "hidden": false,
            "name": "project",
            "commandline": "C://Windows//SysWOW64//cmd.exe",
            "startingDirectory": "d://dvp//project",
            "icon": "D:/dvp/project/favicon.ico"
        }

In this case, can I still make this one as default?

ccapeng avatar Apr 02 '20 06:04 ccapeng

Where do I find or use the terminal for everything on the latest fast ring insider build? Currently on my computer it still is like it was from before the terminal change with tabs and stuff.

AraHaan avatar Apr 02 '20 06:04 AraHaan

@ccapeng You'll have to give the profile a GUID if you want to be able to set it as the default. I recommend https://www.guidgenerator.com/

@AraHaan The Terminal doesn't come pre-installed on Windows - you'll have to manually download it from the store. What you're seeing is still the legacy console, conhost.exe. If you want the Terminal to auto-launch for commandline applications like conhost does, you'll want to follow #492

zadjii-msft avatar Apr 02 '20 13:04 zadjii-msft

Interesting so some people inject dlls into windows explorer to intercept it on executing programs (and to do things like open them in a new tab). Me on the other hand a way I do it is basically to have to process to gain ownership of that instance and embed it in without it's window frame like I did 1 time with notepad on tabs in a windows form.

Perhaps if there was a Windows API function that lists only processes that run in the console (has only a console window like python for example) so then it could be embeded the same way I did it before. Ye it might seem hacky but avoids dll injection.

Edit: Another option:

  1. Get full path of all executing programs.
  2. Open programs and see if the type of program is set to console and not Windows GUI on the entrypoint type.
  3. for each one of type set to console embed it in the terminal like I did before on my notepad test.

AraHaan avatar Apr 02 '20 14:04 AraHaan

@AraHaan that discussion is probably best had in #492, but we're definitely not in the business of hacking a solution together for this problem. Since our team owns the entire console infrastructure, we can actually build a proper system within Windows to allow users to not only use Windows Terminal as the default terminal emulator on Windows, but others as well 😄

zadjii-msft avatar Apr 02 '20 14:04 zadjii-msft

Nice because I would like for all console applications to be more like edge or firefox on tabs when someone passes an url to any methods of starting a process.

Even if it means LKLM or LKCU registry entries.

AraHaan avatar Apr 02 '20 14:04 AraHaan

Guys do you know if this was broken in latest version?

Windows Terminal
Version: 0.11.1121.0

I was using defaultProfile as per @Shorotshishir comment, but since I updated to this version (via Microsoft Store) it keeps opening PowerShell by default, although my default profile exists, is set, was working and can still work when selected...

lamuertepeluda avatar Apr 25 '20 18:04 lamuertepeluda

Nevermind, I see now it has been moved from globals.defaultProfile to defaultProfile in the root...

lamuertepeluda avatar Apr 25 '20 18:04 lamuertepeluda

Nevermind, I see now it has been moved from globals.defaultProfile to defaultProfile in the root... Thanks!

how about we include info like this in the update information? lost 30 minutes searching for that..

pankgeorg avatar Apr 25 '20 20:04 pankgeorg