nix/home/program/bash/module/Copypaste.nix

15 lines
257 B
Nix

{ ... }:
{
text = ''
# Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
function copy() {
wl-copy
}
# Paste system clipboard to stdout. *Example:* `paste > file.txt`.
function paste() {
wl-paste
}
'';
}