mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
9b4938e2c2
Previously, trying to paste "--something" would result in an error from commandline.
7 lines
168 B
Fish
7 lines
168 B
Fish
function fish_clipboard_paste
|
|
if type -q pbpaste
|
|
commandline -i -- (pbpaste)
|
|
else if type -q xsel
|
|
commandline -i -- (xsel --clipboard)
|
|
end
|
|
end
|