Skip to content

Commit

Permalink
vis-clipboard: fix detection of macOS systems
Browse files Browse the repository at this point in the history
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 martanne#417
  • Loading branch information
martanne committed Dec 1, 2016
1 parent 97694a7 commit 78551ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vis-clipboard
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78551ea

Please sign in to comment.