Created
July 2, 2022 19:20
-
-
Save emersonmx/3d712affcf8f873ac8bf45fdfd2bbd79 to your computer and use it in GitHub Desktop.
Open file into nvim of wsl2
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
@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