Skip to content

Instantly share code, notes, and snippets.

@aayushprime
aayushprime / copy-paste.sh
Last active September 4, 2025 09:54
Simple copy paste functions for zsh
# Add to ~/.bashrc or ~/.zshrc
# Header prefix used in the clipboard so paste() knows the source dir
__FILECLIP_HDR="FILECLIPBOARD_CWD:"
copy() {
if [[ $# -eq 0 ]]; then
echo "Usage: copy <file(s)/dir(s)/glob(s)>"
return 1
fi