Created
September 13, 2018 21:37
-
-
Save hasparus/74b09043273d0cf6215ff43ac3358d95 to your computer and use it in GitHub Desktop.
Call VSCode from WSL fish shell.
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 "~|(\/mnt\/d\/wsl-userdir)" | |
set winUserPath "D:/wsl-userdir" | |
set wslCodePath "'/mnt/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