Skip to content

Easily translate path to fit the current runtime env (between wsl / windows cmd / mingw / ...) Cli路径转换工具,将windows cmd/wsl/mingw中的路径转换为当前环境下可用的路径

aak1247/pathfit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfit

| English | 简体中文 |

Cli tool to translate path to fit current environment.

  • Supports WSL、MinGW、Windows(CMD) etc,Especially can use windows path in wsl.

Install

Install by binary

Download binary file from release page, and put it into a directory in PATH.

Install by Golang

go install github.com/aak1247/pathfit@latest

Usage

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`

About

Easily translate path to fit the current runtime env (between wsl / windows cmd / mingw / ...) Cli路径转换工具,将windows cmd/wsl/mingw中的路径转换为当前环境下可用的路径

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages