Skip to content

Instantly share code, notes, and snippets.

@hasparus
Created October 5, 2018 10:00
Show Gist options
  • Save hasparus/a8069f140d713a0b610e43b8dc88728f to your computer and use it in GitHub Desktop.
Save hasparus/a8069f140d713a0b610e43b8dc88728f to your computer and use it in GitHub Desktop.
Changed root from /mnt to /
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