summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
Diffstat (limited to 'rc')
-rwxr-xr-xrc/connect/commands/:cat7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc/connect/commands/:cat b/rc/connect/commands/:cat
new file mode 100755
index 0000000..378a44a
--- /dev/null
+++ b/rc/connect/commands/:cat
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Get the current buffer content.
+mkfifo buffer.fifo
+trap 'rm buffer.fifo' EXIT
+:send write buffer.fifo
+cat buffer.fifo