mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Add clipboard helper functions and bind them
\cy copies, \cv pastes.
This commit is contained in:
7
share/functions/fish_clipboard_copy.fish
Normal file
7
share/functions/fish_clipboard_copy.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
function fish_clipboard_copy
|
||||
if type -q pbcopy
|
||||
commandline | pbcopy
|
||||
else if type -q xsel
|
||||
commandline | xsel --clipboard
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user