From 78551eabf7e129ba7238739c3aea952c49b35eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 1 Dec 2016 12:32:00 +0100 Subject: vis-clipboard: fix detection of macOS systems macOS might also have $DISPLAY defined but neither of xclip nor xsel available. Keep trying different methods until we succeeded or ran out of options. Fix #417 --- vis-clipboard | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vis-clipboard b/vis-clipboard index 3a51b12..0ceed70 100755 --- a/vis-clipboard +++ b/vis-clipboard @@ -19,10 +19,14 @@ vc_determine_command() { return 0 fi done - elif type pbcopy >/dev/null 2>&1; then + fi + + if type pbcopy >/dev/null 2>&1; then echo 'mac' return 0 - elif [ -c /dev/clipboard ]; then + fi + + if [ -c /dev/clipboard ]; then echo 'cygwin' return 0 fi -- cgit v1.2.3