Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mchav/with
- Owner: mchav
- License: other
- Created: 2016-08-16T15:55:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-10T10:50:38.000Z (over 4 years ago)
- Last Synced: 2024-04-23T21:22:39.645Z (7 months ago)
- Topics: shell, shell-scripts, utility
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 1,216
- Watchers: 19
- Forks: 37
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-discoveries - with - command prefixing for continuous workflow using a single tool _(`Bash`)_ (CLI Utilities)
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.