aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_clipboard_paste.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-24 13:17:03 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-25 16:10:16 +0200
commit7d1f45e25f8f7c0bdf0af7d96a60b148b8f54dd3 (patch)
tree9e41e9ab5613f1ce7f991e96a8902901f531cadf /share/functions/fish_clipboard_paste.fish
parent1bad956633860ff6ea5c0ce709e7e1947b05517f (diff)
Add clipboard helper functions and bind them
\cy copies, \cv pastes.
Diffstat (limited to 'share/functions/fish_clipboard_paste.fish')
-rw-r--r--share/functions/fish_clipboard_paste.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/functions/fish_clipboard_paste.fish b/share/functions/fish_clipboard_paste.fish
new file mode 100644
index 00000000..bec43c88
--- /dev/null
+++ b/share/functions/fish_clipboard_paste.fish
@@ -0,0 +1,7 @@
+function fish_clipboard_paste
+ if type -q pbpaste
+ commandline -i (pbpaste)
+ else if type -q xsel
+ commandline -i (xsel --clipboard)
+ end
+end