Skip to content

Instantly share code, notes, and snippets.

@explodecomputer
Created October 9, 2020 12:17
Show Gist options
  • Save explodecomputer/7fa4766b470566df49c1cb440ebde3a7 to your computer and use it in GitHub Desktop.
Save explodecomputer/7fa4766b470566df49c1cb440ebde3a7 to your computer and use it in GitHub Desktop.
subl in wsl
#!/bin/bash
path=$(readlink -f $*);
cwd=$(pwd);
winpath=$(wslpath -w $path);
echo "Editing ${path}"
echo "Windows path is ${winpath}"
/mnt/c/Program\ Files/Sublime\ Text\ 3/subl.exe $winpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment