aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-11 19:17:21 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-11 19:17:21 +0200
commit94f2be465514937c12eb75a1a28d5a54649d0adb (patch)
tree1110ad427127650921c305a65dcff957415c7bb4 /examples
parentd017f374b469dfde5130940de43c576cd0d5a872 (diff)
yank script WIP
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/scripts/yank.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/scripts/yank.sh b/examples/scripts/yank.sh
new file mode 100755
index 0000000..0429f19
--- /dev/null
+++ b/examples/scripts/yank.sh
@@ -0,0 +1,10 @@
+# use this script to pipe any variable to xclip, so you have it in your clipboard
+exit
+# this script is not done yet
+
+# can we make this universal?
+# add xclip to optdeps
+
+which xclip &>/dev/null || exit 1
+
+echo -n `eval "$3"` #| xclip \ No newline at end of file