RunInBash是一个简单的工具,旨在使Windows命令行运行Linux应用程序更轻松,更快速

网友投稿 663 2022-11-04

RunInBash是一个简单的工具,旨在使Windows命令行运行Linux应用程序更轻松,更快速

RunInBash是一个简单的工具,旨在使Windows命令行运行Linux应用程序更轻松,更快速

Introduction

RunInBash is a simple tool designed to make running Linux applications easier and faster under WSL. RunInBash simply runs whatever you type after it under a bash shell and pipes the output back to the parent command line. No need to worry about nested quotes, escaping arguments, or anything else! Read more about $ and RunInBash in the official release notes on our blog. Binary releases are available for download on neosmart-. RunInBash captures the exit code of the executed command and bubbles it back up to the caller, making writing complex scripts containing both Windows and Linux commands easy.

Installation

Just copy RunInBash.exe to your PATH. For best results, we recommend renaming it $.exe, allowing you to run any Linux command by simply prefixing it with $, e.g. $ ifconfig or $ git status.

An automated installer will be arriving in a future update shortly.

Screenshots & Examples

PS D:\git\RunInBash> git statusgit : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check thespelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:1+ git status+ ~~~ + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundExceptionPS D:\git\RunInBash> $ git statusOn branch masterYour branch is up-to-date with 'origin/master'.nothing to commit, working directory clean

And an example of escaping magic at work:

C:\Users\NeoSmart>$ printf "It's just like \"%s\"!" magicIt's just like "magic"!

And here's how RunInBash can make advanced (bash|power)shell scripting pure joy:

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:FS8P153B 单键轻触开关LED闪灯IC换段芯片
下一篇:电动牙刷PCBA,两键六模式声波电动牙刷方案,支持无线充充电
相关文章

 发表评论

暂时没有评论,来抢沙发吧~