fish-shell/share/functions/fish_clipboard_paste.fish
Fabian Homborg 7d1f45e25f Add clipboard helper functions and bind them
\cy copies, \cv pastes.
2016-05-25 16:10:16 +02:00

7 lines
162 B
Fish

function fish_clipboard_paste
if type -q pbpaste
commandline -i (pbpaste)
else if type -q xsel
commandline -i (xsel --clipboard)
end
end