• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.mdH A D20-Mar-20181.7 KiB9867

installH A D20-Mar-2018759 2414

package.jsonH A D20-Mar-2018255 98

withH A D03-May-20229 KiB355264

with.bash-completionH A D20-Mar-201874 32

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