mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 06:46:12 +08:00
8 lines
153 B
Fish
8 lines
153 B
Fish
|
function fish_clipboard_copy
|
||
|
if type -q pbcopy
|
||
|
commandline | pbcopy
|
||
|
else if type -q xsel
|
||
|
commandline | xsel --clipboard
|
||
|
end
|
||
|
end
|