Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
README.md | H A D | 20-Mar-2018 | 1.7 KiB | 98 | 67 | |
install | H A D | 20-Mar-2018 | 759 | 24 | 14 | |
package.json | H A D | 20-Mar-2018 | 255 | 9 | 8 | |
with | H A D | 03-May-2022 | 9 KiB | 355 | 264 | |
with.bash-completion | H A D | 20-Mar-2018 | 74 | 3 | 2 |
README.md
1# with 2 3[![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) 4Program prefixing for continuous workflow using a single tool. 5 6### Usage 7 8`with <program>` 9 10 11Starts an interactive shell with where every command is prefixed using `<program>`. 12 13For example: 14```sh 15$ with git 16git> add . 17git> commit -a -m "Commited" 18git> push 19``` 20 21 22Can also be used for compound commands. 23```sh 24$ with java Primes 25java Primes> 1 262 27java Primes> 4 287 29``` 30 31And to repeat commands: 32```sh 33$ with gcc -o output input.c 34gcc -o -output input.c> 35<enter> 36Compiling... 37gcc -o -output input.c> 38``` 39 40 41To execute a shell command proper prefix line with `:`. 42 43 44`git> :ls` 45 46You can also drop, add, and replace different commands. 47 48```sh 49git> +add 50git add> <some file> 51git add> !commit 52git commit> <arguments and message> 53git commit> - 54git> 55``` 56 57To exit use either `:q` or `:exit`. 58 59### Installation 60 61With [apt-get](https://wiki.debian.org/apt-get): 62 63```sh 64sudo add-apt-repository ppa:mchav/with && sudo apt-get update && sudo apt-get install with 65``` 66 67With [bpkg](https://github.com/bpkg/bpkg): 68 69```sh 70bpkg install mchav/with -g 71``` 72 73With FreeBSD [pkg](https://github.com/freebsd/pkg): 74 75```sh 76pkg install with 77``` 78 79With FreeBSD [ports](https://www.freshports.org/misc/with/) 80 81```sh 82cd /usr/ports/misc/with && make install clean 83``` 84 85With [rawgit](https://rawgit.com): 86 87```sh 88curl -sLo- https://cdn.rawgit.com/mchav/with/master/install | bash 89``` 90 91or: 92 93``` 94curl -s https://raw.githubusercontent.com/mchav/with/master/install | bash 95``` 96 97Currently supports command history and limited completions. 98