Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icyphox/repl
:shell: an instant REPL for any command
https://github.com/icyphox/repl
bash cli repl shell
Last synced: 3 months ago
JSON representation
:shell: an instant REPL for any command
- Host: GitHub
- URL: https://github.com/icyphox/repl
- Owner: icyphox
- License: mit
- Created: 2019-03-26T18:46:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T17:43:17.000Z (over 5 years ago)
- Last Synced: 2024-05-15T13:42:09.754Z (6 months ago)
- Topics: bash, cli, repl, shell
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 76
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# repl
> an instant REPL for any command## Features
- Command history (cycle with arrow keys)
- Reverse-search using `Ctrl+R`
- It's epic## Requirements
- `bash`
- `rlwrap` (optional, needed for history)## Installation
Assuming `$HOME/bin` is in your `$PATH`,
```console
curl -s https://raw.githubusercontent.com/icyphox/repl/master/repl -o $HOME/bin/repl
chmod +x $HOME/bin/repl
```## Usage
It's simple, just `repl `:
```console
$ repl git
git% branch
* master
git% remote -v
origin [email protected]:icyphox/asdf (fetch)
origin [email protected]:icyphox/asdf (push)
```Or, pipe it to STDIN — `repl --stdin `:
```console
$ repl --stdin cat
cat%
yeet
cat% fortnite bad, mc good
fornite bad, mc good
```Reverse-search by hitting `Ctrl+R`:
```console
$ repl pip3
(reverse-i-search)`li': list
```And here's `repl` for `ed(1)` :)
```console
$ repl --stdin ed
ed% what
?ed% am
?ed% i
ed% doing
?
```## Prior art
[`repl(1)`](https://github.com/defunkt/repl) by [Chris Wanstrath](https://github.com/defunkt)
## License
MIT © [Anirudh Oppiliappan](https://icyphox.sh)