3 ms·
how are file endings handled with WSL? last time I tried using git & sublime text on Windows with some version of cygwin it would checkout a repo with windows f
by m_mueller 9y ago
how are file endings handled with WSL? last time I tried using git & sublime text on Windows with some version of cygwin it would checkout a repo with windows file endings, which broke all the bash scripts. if it uses POSIX file endings, how about opening the files with windows applications like VS?
Edit: Also, does the windows terminal now have some sane colour scheme? I could never make it work to not show me some completely unreadable colors, like dark blue text on black ground or light yellow on white.
- petters 9y agoAs far as line endings etc goes, WSL is Linux. It literally has the same binaries running.
- jstarks 9y agoWSL doesn't change the line endings, so you'll want to make sure that if you use Git for Windows along with it, you set it up to use Unix line endings. Most decent editors (including VS and VSCode) can handle LFs just fine. The most annoying gap is Notepad. We are definitely aware of the problems with the terrible color scheme. I don't remember right now if we have done anything about it quite yet... but it should be coming. In the meantime you can adjust the colors manually.
- jhasse 9y agoBtw: I can recommend Notepad2-mod: https://xhmikosr.github.io/notepad2-mod/ https://xhmikosr.github.io/notepad2-mod/ It can replace Notepad and understands LFs. You can install it with Chocolatey https://chocolatey.org/packages/notepad2-mod https://chocolatey.org/packages/notepad2-mod which will automatically set it up as a Notepad replacement :)
- balakk 9y agoConemu is pretty nice, and works with WSL: https://conemu.github.io https://conemu.github.io
- nenreme 9y agoI always configure git and all editors on Windows to use LF line endings. It is so annoying that so many applications use CRLF endings by default, I never understood reason for that, I'm always using LF and have no issues.