3 ms·
Direnv is a great tool for this FWIW.
by nerdponx 2y ago
Direnv is a great tool for this FWIW.
- BeetleB 2y agoWon't work in Windows. I think it really has to be emphasized: One of the great things about just is that it works in Windows with no hassles.
- akoboldfrying 2y agoAre you sure it won't work? I ask because cmd.exe has DOSKEY, which is basically a very slightly souped up version of bash's alias. I think it wouldn't be hard to use DOSKEY to replace CD and PUSHD with macros that run some command to update %PATH% and then change directory as usual.
- BeetleB 2y agoThere's probably a tool that will work similarly in Windows. I was saying it merely because that's what the direnv Github page implies.
- nerdponx 2y agoBut won't all the scripts break?
- BeetleB 2y agoAre you writing scripts that will break? just isn't something magical that will make scripts meant for Linux work in Windows, you know. Some people do actual development in Windows and have Windows scripts.