How to Open Sublime Text From Windows Subsystem for Linux Version 2
August 30, 2023In my current workflow for my day-job, I frequently find myself using my preferred shell fish through the Windows Subsystem for Linux version 2 – or WSLwsl 2 – to do operations on files in the Windows file system. One of my most common operations is that I want to open a file in my preferred editor – Sublime Text. When just using the regular shell in any operating system, Sublime Text provides the shell command subl
that opens Sublime Text. I now want to open the Windows application from the Linux shell to open a file on Windows. Microsoft even provides a wslpath
utility that can translate a path in the WSLwsl into a true Windows one or the other way round. A factor that adds additional complexity to this task is subl
having command line arguments that I might want to use:Read more…