dotfiles/bin/wsl-win-path.sh
2021-08-03 11:51:50 +08:00

4 lines
116 B
Bash
Executable File

#!/bin/sh
cmd.exe /c 'echo '$1 2>/dev/null | awk '{sub("C:", "/mnt/c"); gsub("\\\\","/"); gsub("\r$", ""); print}'