命令行运行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.net. 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

625332134c6f4d4600884b99daebf603.png

PS D:\git\RunInBash> git status

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling 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 : CommandNotFoundException

PS D:\git\RunInBash> $ git status

On branch master

Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean

And an example of escaping magic at work:

625332134c6f4d4600884b99daebf603.png

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

It's just like "magic"!

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

625332134c6f4d4600884b99daebf603.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值