Add clipboard helper functions and bind them

\cy copies, \cv pastes.
This commit is contained in:
Fabian Homborg
2016-05-24 13:17:03 +02:00
parent 1bad956633
commit 7d1f45e25f
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
function fish_clipboard_copy
if type -q pbcopy
commandline | pbcopy
else if type -q xsel
commandline | xsel --clipboard
end
end