This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/copypaste.sh

10 lines
192 B
Bash
Raw Normal View History

2023-12-07 05:11:26 +03:00
# Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
2023-12-07 04:02:47 +03:00
function copy() {
wl-copy
}
2023-12-07 05:11:26 +03:00
# Paste system clipboard to stdout. *Example:* `paste > file.txt`.
2023-12-07 04:02:47 +03:00
function paste() {
wl-paste
}