mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
9b4938e2c2
Previously, trying to paste "--something" would result in an error from commandline.
8 lines
168 B
Fish
8 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
|