terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Changing "startingDirectory" to /mnt/d (another disk)?

Open P1100 opened this issue 7 years ago • 2 comments

I have been trying but with "/" terminal opens in "/mnt/c". I want the starting directory to be "mnt/d" or "D:" of windows, how should i do it?

P1100 avatar Aug 21 '19 11:08 P1100

startingDirectory needs to be a Windows path. So instead of /mnt/d/path/to/directory try d:\\path\\to\\directory.

EDIT: Also make sure to escape your backslashes - you are editing a json file after all

zadjii-msft avatar Aug 21 '19 11:08 zadjii-msft

Yeah it works now, thanks. I was confused by the fact that forward slashes are used in the documentation (https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md), which are used in linux paths

Maybe have ""%USERPROFILE%\wslhome" instead of ""%USERPROFILE%/wslhome"" in the doc? I think it would be more clear

P1100 avatar Aug 21 '19 13:08 P1100