Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mchav/with

Command prefixing for continuous workflow using a single tool.
https://github.com/mchav/with

shell shell-scripts utility

Last synced: 10 days ago
JSON representation

Command prefixing for continuous workflow using a single tool.

Awesome Lists containing this project

README

        

# with

[![Join the chat at https://gitter.im/with-tool/with](https://badges.gitter.im/with-tool/with.svg)](https://gitter.im/with-tool/with?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Program prefixing for continuous workflow using a single tool.

### Usage

`with `

Starts an interactive shell with where every command is prefixed using ``.

For example:
```sh
$ with git
git> add .
git> commit -a -m "Commited"
git> push
```

Can also be used for compound commands.
```sh
$ with java Primes
java Primes> 1
2
java Primes> 4
7
```

And to repeat commands:
```sh
$ with gcc -o output input.c
gcc -o -output input.c>

Compiling...
gcc -o -output input.c>
```

To execute a shell command proper prefix line with `:`.

`git> :ls`

You can also drop, add, and replace different commands.

```sh
git> +add
git add>
git add> !commit
git commit>
git commit> -
git>
```

To exit use either `:q` or `:exit`.

### Installation

With [apt-get](https://wiki.debian.org/apt-get):

```sh
sudo add-apt-repository ppa:mchav/with && sudo apt-get update && sudo apt-get install with
```

With [bpkg](https://github.com/bpkg/bpkg):

```sh
bpkg install mchav/with -g
```

With FreeBSD [pkg](https://github.com/freebsd/pkg):

```sh
pkg install with
```

With FreeBSD [ports](https://www.freshports.org/misc/with/)

```sh
cd /usr/ports/misc/with && make install clean
```

With [rawgit](https://rawgit.com):

```sh
curl -sLo- https://cdn.rawgit.com/mchav/with/master/install | bash
```

or:

```
curl -s https://raw.githubusercontent.com/mchav/with/master/install | bash
```

Currently supports command history and limited completions.