Created
October 5, 2018 10:00
-
-
Save hasparus/a8069f140d713a0b610e43b8dc88728f to your computer and use it in GitHub Desktop.
Changed root from /mnt to /
This file contains 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
set wslUserRegex "~|(\/d\/wsl-userdir)" | |
set winUserPath "D:/wsl-userdir" | |
set wslCodePath "'/d/universal-tools/Microsoft VS Code/bin/code'" | |
function code | |
set arg (string replace --regex $wslUserRegex $winUserPath $argv[1]) | |
eval $wslCodePath $arg | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment