Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days ago
JSON representation
Run Linux commands under WSL without leaving your PowerShell or CMD!
- Host: GitHub
- URL: https://github.com/neosmart/RunInBash
- Owner: neosmart
- License: mit
- Created: 2017-04-01T20:32:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T22:48:12.000Z (about 6 years ago)
- Last Synced: 2024-08-03T22:18:19.649Z (4 months ago)
- Topics: bash, command-line-tool, windows-10, wsl
- Language: C++
- Homepage: https://neosmart.net/RunInBash/
- Size: 5.26 MB
- Stars: 92
- Watchers: 9
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - neosmart/RunInBash - Run Linux commands under WSL without leaving your PowerShell or CMD! (C++)
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
------------```
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 : CommandNotFoundExceptionPS 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:
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: