diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-08-31 10:00:53 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-08-31 10:06:28 +0200 |
| commit | 679cab70a74f894c72d73c411ee17853931fe03c (patch) | |
| tree | 8d6392e7cdca1c69b4903cbda38a906c414deaa3 | |
| parent | bd1e3dc0e537a6b43785aea39028fbf6285cd5c7 (diff) | |
Add a :fifo command
| l--------- | rc/connect/aliases/:f | 1 | ||||
| l--------- | rc/connect/aliases/f | 1 | ||||
| -rwxr-xr-x | rc/connect/commands/:fifo | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/rc/connect/aliases/:f b/rc/connect/aliases/:f new file mode 120000 index 0000000..65124ef --- /dev/null +++ b/rc/connect/aliases/:f @@ -0,0 +1 @@ +../commands/:fifo
\ No newline at end of file diff --git a/rc/connect/aliases/f b/rc/connect/aliases/f new file mode 120000 index 0000000..65124ef --- /dev/null +++ b/rc/connect/aliases/f @@ -0,0 +1 @@ +../commands/:fifo
\ No newline at end of file diff --git a/rc/connect/commands/:fifo b/rc/connect/commands/:fifo new file mode 100755 index 0000000..a9f0281 --- /dev/null +++ b/rc/connect/commands/:fifo @@ -0,0 +1,7 @@ +#!/bin/sh + +# Edit fifo buffer in a client +mkfifo buffer.fifo +trap 'rm buffer.fifo' EXIT +:send edit! -fifo "$PWD/buffer.fifo" '*fifo*' +cat > buffer.fifo |
