vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a7f57908dc74f78bf33c8506322d20270682800a parent 33d0950ad455089468392c664efcd55d93a48253 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 1 Dec 2016 12:32:00 +0100 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 Diffstat:
| M | vis-clipboard | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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