Learn how to Change the Default Listing in Home windows Terminal

Posted on


Windows Terminal with a Command Prompt shell.

Windows Terminal makes use of your present person listing because the default listing while you open it. Nonetheless, you possibly can change this to any listing in your Home windows PC. We’ll present you change the default working listing for PowerShell, Command Immediate, and Ubuntu shell.

Change PowerShell’s Default Listing in Home windows Terminal

PowerShell is the default shell that opens while you launch Home windows Terminal. Like different shells, this one makes use of your present person listing because the default.

You may change this default listing by including a single line of code within the Home windows Terminal’s settings file.

To do that, open the “Begin” menu, seek for “Home windows Terminal,” and click on the app within the outcomes.

Open Windows Terminal

Click on the down-arrow icon on the prime of the Home windows Terminal window, after which choose “Settings.”

Access Windows Terminal settings

Home windows will ask what app you need to open the settings file with. You may select any code (or plain-text) editor within the checklist, however we’ll keep on with Notepad for the sake of simplicity. Click on “Notepad” within the checklist and hit “OK.”

Open Windows Terminal's settings in Notepad

When the settings file opens in Notepad, scroll to the “Make adjustments right here to the powershell.exe profile” part.

Put your cursor on the finish of the final worth on this part and sort a , (comma).

For instance, if the final worth in that part was:

"Hidden": false

It will now appear to be this (See the comma on the finish.):

"Hidden": false,

Add a comma after a value in Windows Terminal

Now, press Enter so as to add a brand new line. Sort the next code on this line, changing PATH with the trail to your new default listing.

Ensure that your listing path is enclosed with double quotes. Additionally, the place you have got a single slash within the path, make it a double slash.

"startingDirectory": "PATH"

For example, to set your desktop because the default listing, you’d kind the next line of code within the settings file (changing “Username” along with your username):

"startingDirectory": "C:UsersUsernameDesktop"

Change PowerShell's default directory

After coming into the trail, click on File > Save in Notepad to save lots of your adjustments.

Save Windows Terminal settings

Now, while you open a brand new PowerShell tab in Home windows Terminal, it’ll use your newly specified listing because the default listing.

Change Command Immediate’s Default Listing in Home windows Terminal

You may change Command Immediate’s default listing utilizing the identical steps as these listed above. The one distinction is that you have to add the brand new listing path within the Command Immediate part of the settings file.

To do that, open Home windows Terminal’s settings such as you did beforehand.

Scroll right down to the “Make adjustments right here to cmd.exe profile” part.

Put your cursor after the final worth on this part, and sort a , (comma). Press Enter so as to add a brand new line and sort the next. Remember to change PATH along with your new listing path.

"startingDirectory": "PATH"

Change Command Prompt's default directory

Choose File > Save in Notepad to save lots of your adjustments.

Change Ubuntu’s Default Listing in Home windows Terminal

You should utilize the identical line of code that you simply used above to vary Ubuntu’s (Linux) default listing in Home windows Terminal.

To do that, open the Home windows Terminal’s settings file.

Scroll to the part the place it says “Identify : Ubuntu.”

Put your cursor after the final worth on this part and add a , (comma).

Press Enter so as to add a brand new line and sort this code in that line. Change PATH with the trail to your new default listing.

"startingDirectory": "PATH"

Change Ubuntu's default directory

In your Notepad window, click on File > Save to save lots of your adjustments.

Learn how to Reset the Default Listing in Home windows Terminal

To revert to the unique default listing in Home windows Terminal, you simply must take away your newly added code from the settings file.

Begin by opening Home windows Terminal after which launching the settings file.

Scroll to the shell that you simply need to reset the default listing for.

Use your mouse to spotlight your complete line of code that you simply added beforehand, then press Backspace to delete that line.

Reset the default directory in Windows Terminal

Additionally, you’ll want to take away the , (comma) that you simply added to the top of the final worth in that part.

Lastly, click on File > Save in Notepad to save lots of your adjustments.

You’re all set.


Do you know that Windows Terminal offers many customization options? You should utilize these choices to vary how this instrument appears to be like and works in your pc.

RELATED: How to Customize the New Windows Terminal App





Source link

Gravatar Image
I love to share everything with you

Leave a Reply

Your email address will not be published. Required fields are marked *