| English | 简体中文 |
Cli tool to translate path to fit current environment.
- Supports WSL、MinGW、Windows(CMD) etc,Especially can use windows path in wsl.
Download binary file from release page, and put it into a directory in PATH.
go install github.com/aak1247/pathfit@latest
pathfit /d/Users/aak1247/Repos
# will output: D:\\Users\aak1247\Repos in Windows
pathfit /mnt/d/Users/aak1247/Repos
# will output: D:\\Users\aak1247\Repos in Windows
pathfit D:\\Users\aak1247\Repos
# will output: /mnt/d/Users/aak1247/Repos in WSL
pathfit D:\\Users\aak1247\Repos
# will output: /D/Users/aak1247/Repos in MinGW
# use with cd command
cd `pathfit D:\\Users\aak1247\Repos`