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

14 lines
237 B
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ ... }: {
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
}
'';
}