Open RuiNtD opened 10 months ago
@RuiNtD I don't see why we'd need to add a switch to this. You can do this automatically as C:\
will never work on WSL and Git Bash.
Because you can't just assume every value in Env should be converted if the program thinks it's a path. That creates a lot of edge cases. Default behavior should be that the Env is set to exactly what the user typed.
Code of Conduct
What would you like to see changed/added?
It would be nice if you could easily convert paths from Windows to WSL / Git Bash. My idea for the format would look like this:
Converting backwards is probably not necessary, since this feature would mostly benefit Windows users, who'd probably write their Aliae configs with Windows in mind anyway. Plus, I think it would even be possible to convert backwards very easily.
Windows path can be converted to Linux via
/mnt/c
(WSL) or/c
(Git Bash). You could check for the existence of the directories to detect which to use. Note that the drive letters become lowercase. This also only supports fixed drives, not network shares.This would also be nice in combination with #31 to automatically converts lists of paths.