Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to spawn a new tab in same directory as previous directory? [closed]

I want to simply start a new tab in the same folder as my previous tab that I was in. Is this possible, and if so how? This is with the Windows Terminal by the way.

Now if I open a new tab, it will open in home directory (which is configured in the Windows Terminal's settings page).

like image 439
DJ Poland Avatar asked Jul 20 '19 00:07

DJ Poland


Video Answer


2 Answers

  1. Open the windows terminal
  2. Click the dropdown button
  3. Click the settings option
  4. set the startingDirectory value to "./"
Example
"profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles.
            "startingDirectory": "./" <---- set this value
        }

like image 148
George C. Avatar answered Dec 31 '22 21:12

George C.


This is not currently possible, as explained here https://github.com/microsoft/terminal/issues/1437 the issue is closed at the moment but could perhaps be re-opened in future.

like image 27
LeaveTheCapital Avatar answered Dec 31 '22 23:12

LeaveTheCapital