fish-shell/share/functions/fish_clipboard_paste.fish
Fabian Homborg 9b4938e2c2 clipboard_paste: Fix lines starting with "-"
Previously, trying to paste "--something" would result in an error from
commandline.
2016-07-03 12:29:58 +02:00

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