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

15 lines
257 B
Nix
Raw Normal View History

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