commit 4518d2b1e263f74224cba2c581ec3749f3ea1faa parent a3b95b9c986e76c55ffcd972288c5ba4e9b50107 Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Tue, 14 May 2024 19:09:11 -0700 Add external buffer for ssh channel host This runs the termux-clipboard-set and get commands on a device over ssh. The specified buffer name is the ssh host to use. Diffstat:
| A | local/buf/sys/config/buf/external/termux | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/local/buf/sys/config/buf/external/termux b/local/buf/sys/config/buf/external/termux @@ -0,0 +1,14 @@ +#!/bin/sh +# ssh + termux buffer program + +# host, get/set +tb() ssh "$1" termux-clipboard-"$2" + +case "$1" in +(list) echo -n '' ;; +(get) tb "$2" get ;; +(set) tb "$2" set ;; +(del) + echo 'Cannot delete termux buffers' 1>&2 + exit 1 ;; +esac