Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neosmart/RunInBash

Run Linux commands under WSL without leaving your PowerShell or CMD!
https://github.com/neosmart/RunInBash

bash command-line-tool windows-10 wsl

Last synced: 3 months ago
JSON representation

Run Linux commands under WSL without leaving your PowerShell or CMD!

Awesome Lists containing this project

README

        

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](https://neosmart.net/blog/2017/meet-your-new-best-friend-for-wsl/). Binary releases [are available for download on neosmart.net](https://neosmart.net/RunInBash/). `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
------------

betterpad screenshot

```
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:

betterpad screenshot

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: