Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Created July 2, 2022 19:20
Show Gist options
  • Save emersonmx/3d712affcf8f873ac8bf45fdfd2bbd79 to your computer and use it in GitHub Desktop.
Save emersonmx/3d712affcf8f873ac8bf45fdfd2bbd79 to your computer and use it in GitHub Desktop.
Open file into nvim of wsl2
@echo off
for /f %%i in ('wsl.exe wslpath "%1"') do set filepath=%%i
wsl.exe -- zsh -l -c 'source $ASDF_DIR/asdf.sh; nvim_open %filepath% %2 %3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment