question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set home directory for Windows Subsystem for Linux (WSL)?

See original GitHub issue

Version: 1.0.0-alpha.38 Platform: win32 10.0.16299

In the settings, I’ve tried the following options for Terminal>Bash on Window>Working Directory:

  • ~
  • /home/balter

In both cases, the terminal does not open properly. If I leave that setting blank, then the terminal opens properly but drops me into /mnt/c/Users/ariel (my Windows home directory).

Note: “Bash on Window” should probably be (WSL) or at least make Window plural.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

15reactions
Eugenycommented, Dec 30, 2018

@Jule- also, until we find the reason, the WSL folks suggest a workaround by invoking wsl.exe ~ or wsl.exe ~ -d <distro-name> - which you can set up as a Profile in Terminus.

12reactions
pinyincommented, Jan 9, 2018

FYI, I added cd ~ at the end of my ~/.bashrc and that works as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing home directory of user on Windows Subsystem for ...
Changing the home directory with WSL is done the same way as in Linux: Enter bash; Type the command sudo vim /etc/passwd ...
Read more >
How do I configure a WSL distro to launch in the ... - YouTube
In the last part of this at home series Kayla Cinnamon shares how you can configure a WSL distro to launch in the...
Read more >
Working across Windows and Linux file systems
Use the Linux file system root directory: \\wsl$\Ubuntu\home\<user name>\Project; Not the Windows file system root directory: ...
Read more >
Using the same Home Directory in Windows and WSL
Exit WSL and re-open it, and your home directory will now match your windows directory. Metadata and File Permissions. A problem with this ......
Read more >
Where is the Ubuntu file system root directory in Windows ...
@DannyStaple If you need to change the permissions on files/folders in your Linux distro from Windows, use wsl.exe , e.g. wsl chmod 600...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found