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

# 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
}