docs(plugins/copyfile): document that filename is optional

This commit is contained in:
Nuri Jung 2025-09-19 21:23:03 +09:00
commit d26a537c81
No known key found for this signature in database
GPG key ID: D5BDFF67E90BACBE

View file

@ -1,11 +1,12 @@
# Copies the contents of a given file to the system or X Windows clipboard
# Copies the contents of a given file or stdin to the system or X Windows
# clipboard
#
# Usage: copyfile <file>
# Usage: copyfile [<file>]
function copyfile {
emulate -L zsh
clipcopy "${1-}" || {
echo "Usage: copyfile <file>"
echo "Usage: copyfile [<file>]"
return 1
}