From c9662de55d78baa82dfcac1afab170a0d8e4f163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 30 Jan 2016 20:15:30 +0100 Subject: Implement system clipboard registers "* and "+ Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste. --- vis-paste | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 vis-paste (limited to 'vis-paste') diff --git a/vis-paste b/vis-paste new file mode 100755 index 0000000..232da2e --- /dev/null +++ b/vis-paste @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ ! -z "$DISPLAY" ]; then + exec xsel -o +elif type pbpaste >/dev/null 2>&1; then + exec pbpaste +else + echo "System clipboard not supported" 1>&2 + exit 1 +fi -- cgit v1.2.3