aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zsh/functions/x-yank
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-21 14:51:21 +0200
committerGravatar Tom Willemse2016-10-21 14:51:21 +0200
commit5d5a506f35417c8c71900003c1d7400af5099b9b (patch)
tree3a05fd9372df2f9f35b3a0aa4f3c368f22f81c5a /zsh/.zsh/functions/x-yank
parent20ce605e175eea156162f8ef8e0a32f5a1dbbb3b (diff)
downloadnew-dotfiles-5d5a506f35417c8c71900003c1d7400af5099b9b.tar.gz
new-dotfiles-5d5a506f35417c8c71900003c1d7400af5099b9b.zip
Allow zsh to copy/paste to clipboard
Diffstat (limited to 'zsh/.zsh/functions/x-yank')
-rw-r--r--zsh/.zsh/functions/x-yank3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/.zsh/functions/x-yank b/zsh/.zsh/functions/x-yank
new file mode 100644
index 0000000..72dd264
--- /dev/null
+++ b/zsh/.zsh/functions/x-yank
@@ -0,0 +1,3 @@
+# -*- mode: sh; -*-
+CUTBUFFER=$(xsel -bo < /dev/null)
+zle yank