Skip to content

Instantly share code, notes, and snippets.

@kryojenik
Created April 28, 2021 15:50
Show Gist options
  • Save kryojenik/b3183acf4c6755d954ae16fa989409d6 to your computer and use it in GitHub Desktop.
Save kryojenik/b3183acf4c6755d954ae16fa989409d6 to your computer and use it in GitHub Desktop.
lnw() {
echo "ni \"$(wslpath -w $(dirname $2))\\$(basename $1)\" -i SymbolicLink -ta \"$(wslpath -w $1)\""
powershell.exe "ni \"$(wslpath -w $(dirname $2))\\$(basename $1)\" -i SymbolicLink -ta \"$(wslpath -w $1)\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment