changeset 409:b5178986dcbb

af{copy,paste}: scripts so I can copy/paste with pipes across platforms
author Augie Fackler <raf@durin42.com>
date Thu, 04 Aug 2016 10:10:09 -0400
parents 8571fe484690
children 76eb2c250b6f
files unixSoft/bin/afcopy unixSoft/bin/afpaste
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100755
--- /dev/null
+++ b/unixSoft/bin/afcopy
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ `uname` = Darwin ] ; then
+  pbcopy
+else
+  xclip -selection clipboard
+fi
new file mode 100755
--- /dev/null
+++ b/unixSoft/bin/afpaste
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ `uname` = Darwin ] ; then
+  pbpaste
+else
+  xclip -selection clipboard -out
+fi