-
-
Save explodecomputer/7fa4766b470566df49c1cb440ebde3a7 to your computer and use it in GitHub Desktop.
subl in wsl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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