Skip to content

Instantly share code, notes, and snippets.

@hasparus
Created September 13, 2018 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasparus/74b09043273d0cf6215ff43ac3358d95 to your computer and use it in GitHub Desktop.
Save hasparus/74b09043273d0cf6215ff43ac3358d95 to your computer and use it in GitHub Desktop.
Call VSCode from WSL fish shell.
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