Command prefixing for continuous workflow using a single tool.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
README.md Reference FreeBSD in the installation section (#47) Mar 20, 2018
install
package.json Update package.json Jul 31, 2017
with Added functionality to replace last command Mar 3, 2017
with.bash-completion

README.md

with

Join the chat at https://gitter.im/with-tool/with Program prefixing for continuous workflow using a single tool.

Usage

with <program>

Starts an interactive shell with where every command is prefixed using <program>.

For example:

$ with git
git> add .
git> commit -a -m "Commited"
git> push

Can also be used for compound commands.

$ with java Primes
java Primes> 1
2
java Primes> 4
7

And to repeat commands:

$ with gcc -o output input.c
gcc -o -output input.c>
<enter>
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.

git> +add
git add> <some file>
git add> !commit
git commit> <arguments and message>
git commit> -
git>

To exit use either :q or :exit.

Installation

With apt-get:

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

With bpkg:

bpkg install mchav/with -g

With FreeBSD pkg:

pkg install with

With FreeBSD ports

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

With rawgit:

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.