Editing the .bashrc from windows will make it not visible on bash
I edited the .bashrc file from APPDATA folder using Visual Studio Code, and after edit the file was not executed anymore, or visible in bash
This would seem to relate to the (now closed) issue #45. Essentially, we shouldn't be editing the Linux files from the Windows side, as this can cause instability and some other scary words. The reverse, however, (editing Windows files from the Linux side) works fantastic and is intended to do so. Suggest closing this issue?
Props for using Visual Studio Code, though. That thing rocks :-)
For the moment it seems ok not to edit the linux files from windows, but as a person that hates vim I would like to have the posibility to edit the files in a win32 app or metro :P app.
Also this reminds me of another bug, in nano you can not scoll the document the texts overlaps.
Closing this out as a duplicate.
To fix this issue: first on Windows: Copy the .bashrc into another folder. Delete the .bashrc file (or other files) in the initial directory. Then in Bash: Type "vim .bashrc", and paste the text back in, using right click. (Make sure you are in the home folder, but typing "cd".)
In the long term, don't edit crucial linux files with Windows applications. https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
After reading this issue, I realized that I have edited my .bashrc in Sublime Text many times, and have encountered no issues so far. Has this issue been improved recently? Just curious.
@ZYinMD It is highly advisable not to modify any WSL files from Windows programs. Always make a backup the .bashrc file. Open the file in any Windows text editor you want, edit it. Now the file permission will be 000. So change the file permission with chmod 664 ~/.bashrc. This is only for experimenting.
@Biswa96 Thanks! I took a look, and indeed the permission of my .bashrc has become 000. However, it's still working as intended, somehow it can still be read by linux on start up. Hmmm~