Added pure-bash alias alternative to nc - fiche - A pastebin adjusted for gophe… | |
git clone git://vernunftzentrum.de/fiche.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit b554845749ae695e2a30eb4868127ec1902e41c5 | |
parent 7ad6a82fd4f816c91d12da0eb808e242ef6edfa1 | |
Author: solusipse <[email protected]> | |
Date: Sat, 2 Sep 2017 21:38:03 +0200 | |
Added pure-bash alias alternative to nc | |
Diffstat: | |
README.md | 37 +++++++++++++++++++++++++------ | |
1 file changed, 30 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/README.md b/README.md | |
@@ -3,7 +3,7 @@ fiche [: | |
@@ -21,11 +21,30 @@ In case you installed and started fiche on localhost: | |
ls -la | nc localhost 9999 | |
``` | |
-### Useful aliases | |
+------------------------------------------------------------------------------- | |
+ | |
+## Useful aliases | |
You can make your life easier by adding a termbin alias to your rc file. We li… | |
-#### `tb` alias | |
+------------------------------------------------------------------------------- | |
+ | |
+### Pure-bash alternative to netcat | |
+ | |
+__Linux (Bash):__ | |
+``` | |
+alias tb="(exec 3<>/dev/tcp/termbin.com/9999; cat >&3; cat <&3; exec 3<&-)" | |
+``` | |
+ | |
+``` | |
+echo less typing now! | tb | |
+``` | |
+ | |
+_See [#42](https://github.com/solusipse/fiche/issues/42), [#43](https://github… | |
+ | |
+------------------------------------------------------------------------------- | |
+ | |
+### `tb` alias | |
__Linux (Bash):__ | |
``` | |
@@ -46,7 +65,9 @@ echo 'alias tb="nc termbin.com 9999"' >> .bash_profile | |
echo less typing now! | tb | |
``` | |
-#### Copy output to clipboard | |
+------------------------------------------------------------------------------- | |
+ | |
+### Copy output to clipboard | |
__Linux (Bash):__ | |
``` | |
@@ -69,14 +90,16 @@ echo less typing now! | tbc | |
__Remember__ to restart your terminal session after adding any of provided abo… | |
+------------------------------------------------------------------------------- | |
+ | |
## Requirements | |
To use fiche you have to have netcat installed. You probably already have it -… | |
------------------------------------------------------------------------------- | |
-## Server-side usage | |
+# Server-side usage | |
-### Installation | |
+## Installation | |
1. Clone: | |
@@ -98,7 +121,7 @@ To use fiche you have to have netcat installed. You probably… | |
------------------------------------------------------------------------------- | |
-### Usage | |
+## Usage | |
``` | |
usage: fiche [-D6epbsdSolBuw]. |