我为 Windows Shell 构建了一个环境重载器。

3 分•作者: byjonas•3 个月前
大家好! 我为 Windows 构建了一个环境变量/路径重载器。我还为 Linux 和 macOS 编译了该项目(尽管在这些系统上使用该工具没有实际意义)。 我想在 Hacker News 上分享我制作的这个小工具,因为我认为有些人可能会从中受益,或者有些人可能会对查看代码感兴趣?我不知道,总之我在这里分享这个工具 XD。 那么,我为什么要构建它呢? 嗯,我发现每次安装新的命令行工具时,都必须重新启动我的 VS Code 和 Shell,这让我非常恼火。我知道 Linux 上有“source ~/.bashrc”命令,我一直在谷歌上寻找 Windows 上类似的东西。当时我找不到这样的工具。 我现在确实知道 Chocolatey 有一个叫做“refreshenv”的工具,但我现在已经完成了项目,所以就发布了它,请不要因此评判我 :< 所以,我很乐意听听大家的想法? 祝大家有美好的一天 :D -我差点忘了提供链接: https://rpath.dev https://github.com/builtbyjonas/rpath 我知道我的语法可能不好……对此表示抱歉。
查看原文
Hello Guys!<p>So I built an environment&#x2F;path reloader for Windows. I also compiled the project for Linux and macOS (even though there is no real purpose in using that tool on those). I wanted to share this little tool I made here on hacker news because I think some people could actually benefit from it or some people could be interested in checking the code? I don&#x27;t know, anyway here I am sharing the tool XD.<p>So why did I build it? Well I found myself very annoyed by the fact I had to restart my vsc and shells every single time I installed a new cli tool. I knew there was the &quot;source ~.&#x2F;bashrc&quot; command on linux and I was looking on google for something similar for windows. I couldn&#x27;t find a tool at that time. I DO KNOW NOW that there is this tool called &quot;refreshenv&quot; from chocolatey but I made the project now so I just released it anyway, don&#x27;t judge me for that please :&lt;<p>So yeah I&#x27;d be happy to hear what you guys are thinking? Have a nice day :D<p>-I almost forgot to give you links: https:&#x2F;&#x2F;rpath.dev https:&#x2F;&#x2F;github.com&#x2F;builtbyjonas&#x2F;rpath<p>And I know my grammar is probably bad... sorry for that.