diff options
Diffstat (limited to 'vis-copy')
| -rwxr-xr-x | vis-copy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vis-copy b/vis-copy new file mode 100755 index 0000000..80d1a07 --- /dev/null +++ b/vis-copy @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ ! -z "$DISPLAY" ]; then + exec xsel -i +elif type pbcopy >/dev/null 2>&1; then + exec pbcopy +else + echo "System clipboard not supported" 1>&2 + exit 1 +fi |
