2016-05-24 19:17:03 +08:00
|
|
|
function fish_clipboard_paste
|
|
|
|
if type -q pbpaste
|
2016-07-03 18:25:56 +08:00
|
|
|
commandline -i -- (pbpaste)
|
2016-05-24 19:17:03 +08:00
|
|
|
else if type -q xsel
|
2016-07-03 18:25:56 +08:00
|
|
|
commandline -i -- (xsel --clipboard)
|
2016-05-24 19:17:03 +08:00
|
|
|
end
|
|
|
|
end
|