From d3aa4117f6210bb30dd6d17b42bdb40e3c5399d0 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 9 Feb 2021 17:40:41 -0500 Subject: Add pbcopy, pbpaste, open dispatch scripts --- home/.local/bin/pbcopy | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home/.local/bin/pbcopy (limited to 'home/.local/bin/pbcopy') diff --git a/home/.local/bin/pbcopy b/home/.local/bin/pbcopy new file mode 100755 index 00000000..a804f836 --- /dev/null +++ b/home/.local/bin/pbcopy @@ -0,0 +1,11 @@ +#!/bin/sh +set -eu + +if [ -n "${SSH_CLIENT:-}" ]; then + exec pbd -c +elif [ -n "${DISPLAY:-}" ]; then + exec xsel -bi +else + echo "${0}: don't know what to do" >&2 + exit 1 +fi -- cgit 1.4.1